Remove redundant service.users.is_admin

This commit is contained in:
dasha_uwu
2026-02-04 19:11:03 +05:00
committed by Jason Volk
parent e59dcb3f3c
commit e1dc52200c
7 changed files with 17 additions and 14 deletions

View File

@@ -107,12 +107,6 @@ impl Service {
})
}
/// Check if a user is an admin
#[inline]
pub async fn is_admin(&self, user_id: &UserId) -> bool {
self.services.admin.user_is_admin(user_id).await
}
/// Create a new user account on this homeserver.
///
/// User origin is by default "password" (meaning that it will login using