mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-04 23:00:51 -05:00
Null check when determining default power levels
This commit is contained in:
parent
b01dd76be1
commit
3553101eb3
@ -271,7 +271,8 @@ class Auth(object):
|
||||
else:
|
||||
key = (RoomCreateEvent.TYPE, "", )
|
||||
create_event = event.old_state_events.get(key)
|
||||
if create_event.content["creator"] == user_id:
|
||||
if (create_event is not None and
|
||||
create_event.content["creator"] == user_id):
|
||||
return 100
|
||||
|
||||
return level
|
||||
|
Loading…
Reference in New Issue
Block a user