mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-10-23 03:11:35 +00:00
fix: always treat server_user as an admin
This commit is contained in:
1 parent
ae16a45515
commit
d1e1ee6156
1 file changed
+4
@@ -406,6 +406,10 @@ pub async fn get_admins(&self) -> Vec<OwnedUserId> {
|
||||
|
||||
/// 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
|
||||
|
||||
Reference in new issue
Block a user