- Notifications
You must be signed in to change notification settings - Fork927
feat: Implied 'member' roles for site and organization#1917
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
501e581
51521ca
844c9ce
28e3957
058e7ab
9a3d38e
5060443
6a89023
ccecdda
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- Remove the now implied 'member' role. | ||
UPDATE | ||
users | ||
SET | ||
rbac_roles = array_append(rbac_roles, 'member'); | ||
--- Remove the now implied 'organization-member' role. | ||
UPDATE | ||
organization_members | ||
SET | ||
roles = array_append(roles, 'organization-member:'||organization_id::text); |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- Remove the now implied 'member' role. | ||
UPDATE | ||
users | ||
SET | ||
rbac_roles = array_remove(rbac_roles, 'member'); | ||
--- Remove the now implied 'organization-member' role. | ||
UPDATE | ||
organization_members | ||
SET | ||
roles = array_remove(roles, 'organization-member:'||organization_id::text); |
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Uh oh!
There was an error while loading.Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -17,7 +17,9 @@ type Permission struct { | ||
// Users of this package should instead **only** use the role names, and | ||
// this package will expand the role names into their json payloads. | ||
type Role struct { | ||
Name string `json:"name"` | ||
// DisplayName is used for UI purposes. If the role has no display name, | ||
// that means the UI should never display it. | ||
DisplayName string `json:"display_name"` | ||
Comment on lines +20 to 23 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. Can we just not send this role to the UI at all? I think the whole 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. I don't send it to the UI. I just use the Pretty much in the current form all role lists are compiled from the 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. Ah gotcha. | ||
Site []Permission `json:"site"` | ||
// Org is a map of orgid to permissions. We represent orgid as a string. | ||
Uh oh!
There was an error while loading.Please reload this page.