mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-05 14:18:55 +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:
parent
df7cf6c0eb
commit
17dd5071ef
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue