[−][src]Attribute Macro actix_grants_proc_macro::has_any_authority
#[has_any_authority]
Macro to сheck that the user has any of the specified authorities.
Examples
use actix_web_grants::proc_macro::has_any_authority; use actix_web::HttpResponse; // User should be ADMIN or MANAGER #[has_any_authority["ROLE_ADMIN", "ROLE_MANAGER"]] async fn macro_secured() -> HttpResponse { HttpResponse::Ok().body("some secured info") }