mirror of
https://github.com/element-hq/synapse.git
synced 2026-01-16 23:00:43 +00:00
Merge 24c436f777 into 5a3362c012
This commit is contained in:
commit
ef1ae7bab5
2 changed files with 2 additions and 1 deletions
1
changelog.d/19321.bugfix
Normal file
1
changelog.d/19321.bugfix
Normal file
|
|
@ -0,0 +1 @@
|
|||
Fix joining a restricted v12 room locally when no local room creator is present but local users with sufficient power levels are. Contributed by @nexy7574.
|
||||
|
|
@ -172,7 +172,7 @@ class EventAuthHandler:
|
|||
if len(local_creators) > 0:
|
||||
chosen_user = local_creators.pop() # random creator
|
||||
user_power_level = CREATOR_POWER_LEVEL
|
||||
else:
|
||||
if chosen_user is None:
|
||||
chosen_user = max(
|
||||
local_users_in_room,
|
||||
key=lambda user: users.get(user, users_default_level),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue