diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2020-10-29 10:48:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 10:48:29 +0000 |
commit | 0ebdde87399e4195b0f385f7f2511ef16893b07b (patch) | |
tree | e51fd8d55a9c7c63b4a39b9e310e4981678b47e1 /tests/api/test_auth.py | |
parent | Make sure a retention policy is a state event (#8527) (diff) | |
download | synapse-0ebdde87399e4195b0f385f7f2511ef16893b07b.tar.xz |
Override any missing default power level keys with DINUM's defaults when creating a room (#68)
The createRoom flow in DINUM's Synapse (through the AccessRules module which has hooks for all of this) already rejects a power levels content dict if it doesn't have high enough power levels to satisfy DINUM's [requirements](https://github.com/matrix-org/synapse-dinsic/blob/ac50ed353b5fdbdf9f853be0d94b6fccaf33973e/synapse/third_party_rules/access_rules.py#L233-L252). This PR ensures that any keys that aren't provided are replaced with the defaults, instead of just assuming the whole dict was correct (and thus those keys were set to mainline Synapse's default instead).
Diffstat (limited to 'tests/api/test_auth.py')
0 files changed, 0 insertions, 0 deletions