Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : Administrators are added in spaces they are not members - EXO-76387 #787

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

rdenarie
Copy link
Member

Before this fix, platform administrators are added in chat space room for all spaces. This problem comes from the chat login listener which get 'accessible' spaces of users. With recents changes, accessibles spaces are spaces with template user can administrate. User must be only added in space he is member. To fix it, we replace the call in listener to getMemberSpacesByFilter instead of getAccessibleSpaces

In addition, to fix current data, we add an Upgrade Plugin which check all space rooms and remove users which are not member of the space

…6387

Before this fix, platform administrators are added in chat space room for all spaces.
This problem comes from the chat login listener which get 'accessible' spaces of users.
With recents changes, accessibles spaces are spaces with template user can administrate.
User must be only added in space he is member. To fix it, we replace the call in listener to getMemberSpacesByFilter instead of getAccessibleSpaces

In addition, to fix current data, we add an Upgrade Plugin which check all space rooms and remove users which are not member of the space
@rdenarie rdenarie requested review from mkrout and Jihed525 January 17, 2025 10:36
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 75%)
C Reliability Rating on New Code (required ≥ A)
3 New Critical Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@Jihed525 Jihed525 merged commit 96b994d into feature/maintenance Jan 17, 2025
8 of 9 checks passed
@Jihed525 Jihed525 deleted the fix/task-76387 branch January 17, 2025 10:53
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