fix: always treat server_user as an admin

This commit is contained in:
chri-k 2026-02-10 13:56:22 +00:00 committed by Ellis Git
parent ae16a45515
commit d1e1ee6156

View file

@ -406,6 +406,10 @@ impl Service {
/// Checks whether a given user is an admin of this server
pub async fn user_is_admin(&self, user_id: &UserId) -> bool {
if self.services.globals.server_user == user_id {
return true
}
if self
.services
.server