Skip to content

fix: correct user roles being passed into terraform context #17460

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
Apr 17, 2025

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Apr 17, 2025

Roles were being passed into the workspace context incorrectly. Site wide scopes were being org scoped. Roles outside the org should also not be sent.

@Emyrk Emyrk requested a review from aslilac April 17, 2025 20:07
Comment on lines +606 to +608
if role.OrganizationID != uuid.Nil && role.OrganizationID != s.OrganizationID {
continue // Only include site wide and org specific roles
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if role.OrganizationID != uuid.Nil && role.OrganizationID != s.OrganizationID {
continue // Only include site wide and org specific roles
}
// Only include site wide and org specific roles
if role.OrganizationID != uuid.Nil && role.OrganizationID != s.OrganizationID {
continue
}

@Emyrk Emyrk merged commit ea65ddc into main Apr 17, 2025
36 checks passed
@Emyrk Emyrk deleted the stevenmasley/provisioner_right_roles branch April 17, 2025 20:42
@github-actions github-actions bot locked and limited conversation to collaborators Apr 17, 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.

2 participants