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

feat: add warning when removing a group #628

Merged
merged 13 commits into from
Apr 24, 2024
Merged

feat: add warning when removing a group #628

merged 13 commits into from
Apr 24, 2024

Conversation

wojcik91
Copy link
Contributor

Implements #607

return Err(WebError::ObjectNotFound(msg));
};
user.add_to_group(&mut *transaction, &group).await?;
// let _result = ldap_add_user_to_group(&mut *transaction, username, &group.name).await;
Copy link
Contributor

Choose a reason for hiding this comment

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

Delet dis.

user.remove_from_group(&mut *transaction, &group).await?;
// Add new members to the group.
if let Some(user) = User::find_by_username(&mut *transaction, username).await? {
user.add_to_group(&mut *transaction, &group).await?;
// let _result =
Copy link
Contributor

Choose a reason for hiding this comment

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

J.w.

// Remove outstanding members.
for user in current_members {
user.remove_from_group(&mut *transaction, &group).await?;
// let _result =
Copy link
Contributor

Choose a reason for hiding this comment

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

j.w.

@wojcik91 wojcik91 merged commit da89afa into dev Apr 24, 2024
3 checks passed
@wojcik91 wojcik91 deleted the group_remove_warning branch April 24, 2024 07:01
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