[FIX] Several problems with read-only rooms and muted users#11311
Merged
[FIX] Several problems with read-only rooms and muted users#11311
Conversation
…Rocket.Chat into fix.post-readonly-permission
Member
|
@Hudell wouldn't be better to ignore the array of muted users since we are putting everyone in there? |
Contributor
Author
|
Looks like there are some places where only the |
Contributor
Author
|
With the new changes, the I've also added a migration to clear the |
sampaiodiego
previously requested changes
Oct 20, 2018
MarcosSpessatto
suggested changes
Mar 29, 2019
Contributor
|
@Hudell can you please take a look on tests? |
Member
|
@Hudell can you fix the tests? |
MarcosSpessatto
approved these changes
May 16, 2019
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Closes #4769
The permission was checked when adding users to readonly channel (to determine if they are muted or not) but if the user received or lost the permission later, it would never be checked again.