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

Backport: user counter when removing user #1146

Merged

Conversation

zak39
Copy link
Collaborator

@zak39 zak39 commented Feb 10, 2025

OP#3548

In this fix/refactor, I determine if a user is part of a connected group by following these steps:

1. Check if the user is in the connected group.
2. Check if the user is hard registered in the user group (SPACE-U).

The `isUserConnectedGroup` function returns true if the user is in a connected group, and false otherwise.

In the `addGroup` function, I check if the current user is in a connected group. If not, the user is not added to the group.
Mock the GroupFoldersGroupsMapper.
@zak39 zak39 added backend Modification related to backend debug Ongoing correction refactor backport labels Feb 10, 2025
@zak39 zak39 added this to the v4.0.1 milestone Feb 10, 2025
@zak39 zak39 self-assigned this Feb 10, 2025
@zak39 zak39 merged commit 9e9457c into stable4.0 Feb 10, 2025
5 of 6 checks passed
@zak39 zak39 deleted the backport/user-counter-when-removing-user/1130/stable4.0 branch February 10, 2025 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Modification related to backend backport debug Ongoing correction refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant