diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-06-14 11:26:27 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-06-14 11:26:27 +0100 |
commit | 557b686eacca0b59820489daf6a5ea929cda1636 (patch) | |
tree | a7b998712cade8c95a7900f887b228716f1b11d5 /synapse/api | |
parent | Fix event filtering in get_missing_events handler (diff) | |
download | synapse-557b686eacca0b59820489daf6a5ea929cda1636.tar.xz |
Refactor get_send_level to take a power_levels event
it makes it easier for me to reason about
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/auth.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 06fa38366d..66639b0089 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -655,7 +655,7 @@ class Auth(object): auth_events[(EventTypes.PowerLevels, "")] = power_level_event send_level = event_auth.get_send_level( - EventTypes.Aliases, "", auth_events + EventTypes.Aliases, "", power_level_event, ) user_level = event_auth.get_user_power_level(user_id, auth_events) |