0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-18 13:14:01 +01:00

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

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