Skip to content

Conversation

@neilalexander
Copy link
Contributor

The checkUserLevels function was considering the default user level if the user didn't have a key defined, which meant that promoting or demoting a user above/below the default power levels could result in the event auth failing, even though the changes should be allowed.

It could also end up adding duplicates, which just seems wasteful.

@neilalexander neilalexander merged commit 8958f9d into main May 6, 2022
@neilalexander neilalexander deleted the neilalexander/eventauthfixes branch May 6, 2022 14:40
neilalexander added a commit to matrix-org/dendrite that referenced this pull request May 6, 2022
kegsay added a commit to matrix-org/complement that referenced this pull request May 6, 2022
kegsay added a commit to matrix-org/complement that referenced this pull request May 6, 2022
* Add regression test when modifying events_default

xref matrix-org/gomatrixserverlib#306

* Update tests/csapi/power_levels_test.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants