- Notifications
You must be signed in to change notification settings - Fork929
feat: Add rbac to templateversion+orgmember endpoints#1713
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.
Conversation
// ExtractOrganizationMemberParam grabs a user membership from the "organization" and "user" URL parameter. | ||
// This middleware requires the ExtractUser and ExtractOrganization middleware higher in the stack | ||
funcExtractOrganizationMemberParam(db database.Store)func(http.Handler) http.Handler { |
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.
BeforeExtractOrganization
did this with theAPIKey.UserID
. That didn't make sense to me, as we use{user}
forExtractUser
.
So I changed this to use the user from{user}
and org from{organization}
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
RBAC on
{templateversions}
endpoints andassign org roles
endpoint.