Skip to main content

role_for

Function role_for 

Source
pub fn role_for(
    map: &[(String, Role)],
    email: Option<&str>,
    groups: &[String],
) -> Option<Role>
Expand description

The role map gives a user with email and groups: the highest of the entries that match; None when none does.