Skip to content
Snippets Groups Projects
Commit 17dd5071 authored by Erik Johnston's avatar Erik Johnston
Browse files

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.
parent df7cf6c0
No related branches found
No related tags found
No related merge requests found
......@@ -860,7 +860,7 @@ class Auth(object):
redact_level = self._get_named_level(auth_events, "redact", 50)
if user_level > redact_level:
if user_level >= redact_level:
return False
redacter_domain = EventID.from_string(event.event_id).domain
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment