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.