-
Notifications
You must be signed in to change notification settings - Fork 894
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 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 1 commit
501e581
51521ca
844c9ce
28e3957
058e7ab
9a3d38e
5060443
6a89023
ccecdda
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ type UpdateUserPasswordRequest struct { | |
} | ||
|
||
type UpdateRoles struct { | ||
Roles []string `json:"roles" validate:"required"` | ||
Roles []string `json:"roles" validate:""` | ||
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. Does sending 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. Yes. The UI and user will never see the |
||
} | ||
|
||
type UserRoles struct { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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
org-member:
thing is just the Rego leaking out a bit.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't send it to the UI. I just use the
DisplayName
to indicate that.Pretty much in the current form all role lists are compiled from the
builtin
const. So that list needs to be filtered for the UI. I thought it was easy to just use this field, since it has no purpose for the member roles nowThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha.