mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-06 13:22:23 +00:00
Set type of user_id on is_server_admin to str (#18786)
This commit is contained in:
@@ -761,7 +761,7 @@ class ModuleApi:
|
||||
Returns:
|
||||
True if the user is a server admin, False otherwise.
|
||||
"""
|
||||
return await self._store.is_server_admin(UserID.from_string(user_id))
|
||||
return await self._store.is_server_admin(user_id)
|
||||
|
||||
async def set_user_admin(self, user_id: str, admin: bool) -> None:
|
||||
"""Sets if a user is a server admin.
|
||||
|
||||
Reference in New Issue
Block a user