Skip to main content

apply_default_role

Function apply_default_role 

Source
pub fn apply_default_role(
    ctx: &AuthContext<impl AuthSchema>,
    create_user: &mut CreateUser,
)
Expand description

Apply the configured default admin role to a new user when the caller didn’t set an explicit role.