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

allow the removal of non-confirmed owners #2772

Merged

Conversation

stefan0xC
Copy link
Contributor

If you invite a new user as another owner of an organization you cannot remove or change the role of the user until the user accepts the invitation and is confirmed. This behavior was introduced in 1722742 (previously, in 1.25.2 you could remove yourself as the owner as long as you had invited someone else as owner which would also be incorrect).

This change ensures user_to_edit and user_to_delete are actually confirmed users, before checking if they are the last owner of an organization.

ensure user_to_edit and user_to_delete are actually confirmed users,
before checking if they are the last owner of an organization.
Copy link
Collaborator

@BlackDex BlackDex left a comment

Choose a reason for hiding this comment

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

That was an oversight of mine it looks like.
Thanks for spotting and fixenm

@dani-garcia dani-garcia merged commit 6337af5 into dani-garcia:main Oct 9, 2022
@stefan0xC stefan0xC deleted the allow-removal-of-invited-owners branch October 10, 2022 22:34
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.

3 participants