Skip to content

fix: remove assigning org-member role, this is implied from membership #13578

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 1 commit into from
Jun 21, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jun 14, 2024

organization-member is implied here:

organization_members,
-- All org_members get the organization-member role for their orgs
unnest(
array_append(roles, 'organization-member')

Remove manually setting it, because it is impossible to remove this role. This only affects the first user, so only 1 user per deployment has this role manually assigned. This is not a big deal, and can be ignored.

@Emyrk Emyrk requested review from johnstcn and f0ssel and removed request for johnstcn June 20, 2024 14:19
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

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

stamp 👍

Comment on lines 98 to 101
// TODO: When organizations are allowed to be created, we should
// come back to determining the default role of the person who
// creates the org. Until that happens, all users in an organization
// should be just regular members.
Copy link
Member

Choose a reason for hiding this comment

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

What about this TODO item? Out of scope?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yup out of scope. No one has requested this yet, but I imagine with custom roles it'll be asked

@Emyrk Emyrk merged commit 819bfd3 into main Jun 21, 2024
37 checks passed
@Emyrk Emyrk deleted the stevenmasley/implied_org_member branch June 21, 2024 13:01
@github-actions github-actions bot locked and limited conversation to collaborators Jun 21, 2024
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