mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Merge branch 'babolivier/power-levels' of github.com:matrix-org/synapse into babolivier/power-levels
This commit is contained in:
commit
95b5d4ad54
@ -371,6 +371,7 @@ class RoomAccessRules(object):
|
|||||||
|
|
||||||
def _is_power_level_content_allowed(self, content, access_rule):
|
def _is_power_level_content_allowed(self, content, access_rule):
|
||||||
"""Check if a given power levels event is permitted under the given access rule.
|
"""Check if a given power levels event is permitted under the given access rule.
|
||||||
|
|
||||||
It shouldn't be allowed if it either changes the default PL to a non-0 value or
|
It shouldn't be allowed if it either changes the default PL to a non-0 value or
|
||||||
gives a non-0 PL to a user that would have been forbidden from joining the room
|
gives a non-0 PL to a user that would have been forbidden from joining the room
|
||||||
under a more restrictive access rule.
|
under a more restrictive access rule.
|
||||||
|
Loading…
Reference in New Issue
Block a user