summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-07-03 18:21:42 +0100
committerGitHub <noreply@github.com>2019-07-03 18:21:42 +0100
commit8b44097771adc414defaceb7ade003b8326c0777 (patch)
tree69ce6041a82d6f85732bd667a9df22458852ba8b
parentIncorporate review (diff)
downloadsynapse-8b44097771adc414defaceb7ade003b8326c0777.tar.xz
Update synapse/third_party_rules/access_rules.py
Co-Authored-By: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
-rw-r--r--synapse/third_party_rules/access_rules.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/third_party_rules/access_rules.py b/synapse/third_party_rules/access_rules.py

index 7c97e79c2b..c71b7f21bf 100644 --- a/synapse/third_party_rules/access_rules.py +++ b/synapse/third_party_rules/access_rules.py
@@ -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.