auth_group

Requires group membership.

Target function

Signature

1auth_group(group::string, ...)

Requires group membership.

auth_group is a global callable that can be used wherever an expression is valid. auth_group works with request identity or stored session state. Keep authorization checks close to the action they protect.

Parameters

group
Required value of type string. Supply group positionally unless the signature shows a keyword form.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1auth_group('editors')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.