Update synapse/third_party_rules/access_rules.py

Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
This commit is contained in:
Brendan Abolivier 2019-07-03 18:21:42 +01:00 committed by GitHub
parent 6b83a1826c
commit 8b44097771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -367,6 +367,7 @@ class RoomAccessRules(object):
def _is_power_level_content_allowed(self, content, 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
gives a non-0 PL to a user that would have been forbidden from joining the room
under a more restrictive access rule.