Skip to main content

ROLE_ADMIN

Constant ROLE_ADMIN 

Source
pub const ROLE_ADMIN: &str = "admin";
Expand description

Role string meaning “has admin access”. Anything else is treated as a regular user; the admin middleware only unlocks /admin when this matches exactly.