fix: always treat server_user as an admin
This commit is contained in:
parent
ae16a45515
commit
d1e1ee6156
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue