Skip to content
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

[Backend] Make Scopes/Roles easier to use in the UI #2716

Closed
pattisdr opened this issue Feb 27, 2023 · 0 comments · Fixed by #2741
Closed

[Backend] Make Scopes/Roles easier to use in the UI #2716

pattisdr opened this issue Feb 27, 2023 · 0 comments · Fixed by #2741
Assignees

Comments

@pattisdr
Copy link
Contributor

Is your feature request related to a specific problem?

I believe we need to return scopes as enum types to make it easier for the UI to stay up to date. Also, it would be useful to have a list of all scopes the user has via any avenue.

Describe the solution you'd like

  • Add total_scopes key to get_user_permissions. This should return a combination of scopes the user has been assigned directly along with any scopes they have via their role(s). There shouldn't be duplicates here.
  • get_user_permissions scopes and total_scopes type should be an enum. Context here: [Backend] Add Role-Based Permissions [#2606] #2671 (comment)

Describe alternatives you've considered, if any

A description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@pattisdr pattisdr self-assigned this Mar 1, 2023
@pattisdr pattisdr changed the title Make Scopes/Roles easier to use in the UI [Backend] Make Scopes/Roles easier to use in the UI Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants