summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-07-18 15:20:00 +0100
committerRichard van der Hoff <richard@matrix.org>2019-07-18 15:20:00 +0100
commit4102cb220aaf4c4e73344c28370db6c0535fd7aa (patch)
tree40d1eebf3f583bbf78aac39c794bd41fef9d01bd /synapse/api/auth.py
parentMerge branch 'develop' of github.com:matrix-org/synapse into matrix-org-hotfixes (diff)
parentClean up opentracing configuration options (#5712) (diff)
downloadsynapse-4102cb220aaf4c4e73344c28370db6c0535fd7aa.tar.xz
Merge branch 'release-v1.2.0' into matrix-org-hotfixes
Diffstat (limited to 'synapse/api/auth.py')
-rw-r--r--synapse/api/auth.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py

index d9e943c39c..7ce6540bdd 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py
@@ -606,21 +606,6 @@ class Auth(object): defer.returnValue(auth_ids) - def check_redaction(self, room_version, event, auth_events): - """Check whether the event sender is allowed to redact the target event. - - Returns: - True if the the sender is allowed to redact the target event if the - target event was created by them. - False if the sender is allowed to redact the target event with no - further checks. - - Raises: - AuthError if the event sender is definitely not allowed to redact - the target event. - """ - return event_auth.check_redaction(room_version, event, auth_events) - @defer.inlineCallbacks def check_can_change_room_list(self, room_id, user): """Check if the user is allowed to edit the room's entry in the