Allow user to redact with an equal power

Users only need their power level to be equal to the redact level for
them to be allowed to redact events.
This commit is contained in:
Erik Johnston 2015-11-26 11:17:57 +00:00
parent df7cf6c0eb
commit 17dd5071ef
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ class Auth(object):
redact_level = self._get_named_level(auth_events, "redact", 50) redact_level = self._get_named_level(auth_events, "redact", 50)
if user_level > redact_level: if user_level >= redact_level:
return False return False
redacter_domain = EventID.from_string(event.event_id).domain redacter_domain = EventID.from_string(event.event_id).domain