-
Notifications
You must be signed in to change notification settings - Fork 426
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
Return tags in /my-permission #4813
Comments
I guess we can just add an extra key, e.g. {
"permissions": ["VIEW_ENVIRONMENT", "CREATE_CHANGE_REQUEST"],
"admin": false,
"tag_based_permissions": [{"key": "UPDATE_FEATURE_STATE", "tags": [1, 2]}]
} |
This makes sense, I will update the frontend PR to use this |
4 tasks
4 tasks
@kyle-ssg, I’ve implemented it here with a slight variation. Instead of using 'keys,' I've used 'permissions' (a list) since it can contain more than one permission. e.g:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Tag-based roles allow you to restrict permissions to certain tagged features, however, the frontend doesn't currently receive any information about what tags the user has permissions for in the my-permissions endpoint - this means the frontend isn't disabling / hiding any access where appropriate tags aren't added.
Describe the solution you'd like.
In order for the frontend to start restricting tag based roles, the my-permissions endpoint needs to return the tags the permission has access to, if none are returned the frontend should assume they have access to permissions regardless of the tagged feature.
Describe alternatives you've considered
Let the api 403 when attempting actions, however this would add many new scenarios to test where the frontend was originally hiding / disabling ui
Additional context
No response
The text was updated successfully, but these errors were encountered: