Function check_role
Source pub fn check_role(auth_token: &AuthToken, required_role: &str) -> bool
Expand description
Check whether auth_token carries the given role.
The "admin" role implicitly matches every role.
§Example
ⓘif check_role(&token, "moderator") {
}