mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Fix bug where we didn't correctly store the ops power levels event.
This commit is contained in:
parent
4ac80b8570
commit
4b8244fbf8
3 changed files with 9 additions and 1 deletions
|
@ -169,6 +169,11 @@ class Auth(object):
|
|||
)
|
||||
_, kick_level = yield self.store.get_ops_levels(event.room_id)
|
||||
|
||||
if kick_level:
|
||||
kick_level = int(kick_level)
|
||||
else:
|
||||
kick_level = 5
|
||||
|
||||
if user_level < kick_level:
|
||||
raise AuthError(
|
||||
403, "You cannot kick user %s." % target_user_id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue