Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: hide deleted users from org members query #16830

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

Merged
merged 2 commits into from
Mar 6, 2025

Conversation

aslilac
Copy link
Member

@aslilac aslilac commented Mar 6, 2025

Currently if you delete a user, you see a ghost of them as an organization member, because the query for listing organization members does not filter out deleted users, and the membership doesn't get deleted because users only get soft deleted. This shouldn't be a security issue, because the affected deleted user is still unable to login or take any actions.

I've updated the query to hide deleted users. In the future we may wish to remove these "dangling" records, or mark them as soft deleted as well.

@aslilac aslilac requested a review from Emyrk March 6, 2025 18:26
@stirby
Copy link
Collaborator

stirby commented Mar 6, 2025

/cherry-pick release/2.20

@aslilac aslilac merged commit eddccbc into main Mar 6, 2025
32 checks passed
@aslilac aslilac deleted the lilac/filter-deleted-members branch March 6, 2025 18:50
@github-actions github-actions bot locked and limited conversation to collaborators Mar 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants