summary refs log tree commit diff
path: root/synapse/api
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-06-14 11:26:27 +0100
committerRichard van der Hoff <richard@matrix.org>2018-06-14 11:26:27 +0100
commit557b686eacca0b59820489daf6a5ea929cda1636 (patch)
treea7b998712cade8c95a7900f887b228716f1b11d5 /synapse/api
parentFix event filtering in get_missing_events handler (diff)
downloadsynapse-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.py2
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)