mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04: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
@ -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 New Issue
Block a user