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

Fix GetDeletedAt for orgs #2700

Merged
merged 1 commit into from
Jul 17, 2023
Merged

Fix GetDeletedAt for orgs #2700

merged 1 commit into from
Jul 17, 2023

Conversation

georgethebeatle
Copy link
Member

Is there a related GitHub Issue?

#2605

What is this change about?

The GetDeletedAt method now delegates to GetOrg. This is important since
orgs are special from rbac point of view since in order to know if we
have permission in an org we have to have role bindings to some role in
that org. This is why GetOrg is implemented via List-ing orgs and
filtering by guid. Not following that pattern results in any user seeing
any orgs.

Does this PR introduce a breaking change?

No

Acceptance Steps

See #2605 (comment)

Tag your pair, your PM, and/or team

@gcapizzi

The GetDeletedAt method now delegates to GetOrg. This is important since
orgs are special from rbac point of view since in order to know if we
have permission in an org we have to have role bindings to some role in
that org. This is why GetOrg is implemented via List-ing orgs and
filtering by guid. Not following that pattern results in any user seeing
any orgs.

Co-authored-by: Georgi Sabev <georgethebeatle@gmail.com>
@gcapizzi gcapizzi merged commit 676a96b into main Jul 17, 2023
@gcapizzi gcapizzi deleted the issues/2605-org-delete-job branch July 17, 2023 14:46
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