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

[stable25] fix(user-management): Fix deleting user in hidden group(s) #37267

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

szaimen
Copy link
Contributor

@szaimen szaimen commented Mar 16, 2023

Supersedes #36579

@szaimen szaimen added bug 3. to review Waiting for reviews labels Mar 16, 2023
@szaimen szaimen added this to the Nextcloud 25.0.6 milestone Mar 16, 2023
@szaimen
Copy link
Contributor Author

szaimen commented Mar 16, 2023

/compile amend /

E.g. guest_users

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Comment on lines +187 to +190
if (!group) {
console.warn('User group ' + userGroup + ' does not exist during user removal')
return
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would map and filter instead of this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChristophWurst could you have a look at the comment? Not sure if I can follow Louis' suggestion...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It gets the same result of undefined. This is a backport. Let's leave it like the original PR and refactoring is desired one can clean up the code on master

@blizzz blizzz merged commit 75b7e07 into stable25 Apr 11, 2023
@blizzz blizzz deleted the enh/36579/new-attempt branch April 11, 2023 08:57
@skjnldsv skjnldsv mentioned this pull request Apr 13, 2023
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants