Crate actix_grants_proc_macro

Source

Attribute Macros§

has_any_permission
Macro to сheck that the user has any of the specified permissions.
has_any_role
Macro to сheck that the user has any the specified roles. Role - is permission with prefix “ROLE_”.
has_permissions
Macro to сheck that the user has all the specified permissions. Allow to add a conditional restriction based on handlers parameters. Add the secure attribute followed by the the boolean expression to validate based on parameters
has_roles
Macro to сheck that the user has all the specified roles. Role - is permission with prefix “ROLE_”.