actix_
grants_
proc_
macro
2.0.2
All Items
Crate Items
Attribute Macros
Crate
actix_grants_proc_macro
Copy item path
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_”.