summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2019-01-29 23:07:00 +0000
committerGitHub <noreply@github.com>2019-01-29 23:07:00 +0000
commite12313ba2571c8e416136b9eb1e6620504d9a113 (patch)
treeb62b1658804c8f76cde6f5a9d24e7aff3af56438 /synapse/api/auth.py
parentMerge pull request #4514 from matrix-org/erikj/remove_event_id (diff)
parentMerge branch 'develop' of github.com:matrix-org/synapse into erikj/redactions... (diff)
downloadsynapse-e12313ba2571c8e416136b9eb1e6620504d9a113.tar.xz
Merge pull request #4499 from matrix-org/erikj/redactions_eiah
Implement rechecking of redactions for room versions v3
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r--synapse/api/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py
index 2d78a257d3..5992d30623 100644
--- a/synapse/api/auth.py
+++ b/synapse/api/auth.py
@@ -616,7 +616,7 @@ class Auth(object):
 
         defer.returnValue(auth_ids)
 
-    def check_redaction(self, event, auth_events):
+    def check_redaction(self, room_version, event, auth_events):
         """Check whether the event sender is allowed to redact the target event.
 
         Returns:
@@ -629,7 +629,7 @@ class Auth(object):
             AuthError if the event sender is definitely not allowed to redact
             the target event.
         """
-        return event_auth.check_redaction(event, auth_events)
+        return event_auth.check_redaction(room_version, event, auth_events)
 
     @defer.inlineCallbacks
     def check_can_change_room_list(self, room_id, user):