Skip to content

Commit 6621d2e

Browse files
committed
fix: Fall back to checking power levels when sourcing restricted join users
Signed-off-by: timedout <[email protected]>
1 parent f79acff commit 6621d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

synapse/handlers/event_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async def get_user_which_could_invite(
172172
if len(local_creators) > 0:
173173
chosen_user = local_creators.pop() # random creator
174174
user_power_level = CREATOR_POWER_LEVEL
175-
else:
175+
if chosen_user is None:
176176
chosen_user = max(
177177
local_users_in_room,
178178
key=lambda user: users.get(user, users_default_level),

0 commit comments

Comments
 (0)