-
Notifications
You must be signed in to change notification settings - Fork 1.5k
feat: configurable default org member roles #25994
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| ALTER TABLE organizations DROP COLUMN IF EXISTS default_org_member_roles; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| ALTER TABLE organizations | ||
| ADD COLUMN default_org_member_roles text[]; | ||
|
|
||
| UPDATE organizations | ||
| SET default_org_member_roles = ARRAY['organization-workspace-access']::text[]; | ||
|
Comment on lines
+4
to
+5
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Backfill all existing organizations |
||
|
|
||
| ALTER TABLE organizations | ||
| ALTER COLUMN default_org_member_roles SET NOT NULL; | ||
|
|
||
| COMMENT ON COLUMN organizations.default_org_member_roles IS | ||
| 'Roles granted to every member of this organization at request time. ' | ||
| 'The set is unioned into each member''s effective roles when ' | ||
| 'GetAuthorizationUserRoles runs, so changes propagate to all members ' | ||
| 'on the next request. Deployments can use this column to revoke ' | ||
| 'capabilities that would otherwise be considered normal organization ' | ||
| 'member permissions.'; | ||
|
Comment on lines
+1
to
+16
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Existing orgs are backfilled this way |
||
Uh oh!
There was an error while loading. Please reload this page.