Skip to main content

change_role

Function change_role 

Source
pub async fn change_role(
    username: &str,
    role: AdminRole,
    database: Arc<Database>,
    trail: &impl OperatorTrail,
) -> Result<Option<(AdminUser, u64)>, UserError>
Expand description

Sets username’s tier, ending their sessions so the new one applies at once — recorded as for change_status. None when there is no such operator.