Skip to content

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Nov 4, 2021

Will be utilized when building a configuration form in admin, and makes use of the currently unused configurable list of permissions.

Will be utilized when building a configuration form in admin, and makes use of the currently unused configurable list of permissions.
@dcramer dcramer requested review from a team as code owners November 4, 2021 17:57
@dcramer
Copy link
Member Author

dcramer commented Nov 4, 2021

@wedamija found a use for it :)

@dcramer
Copy link
Member Author

dcramer commented Nov 4, 2021

thought: if permisisons are superuser only, should this return empty list when user is missing is_superuser? my thoughts are: meh who cares

Copy link
Member

@wedamija wedamija left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably not that big of a deal, but since this endpoint is intended for use only by superusers should we just restrict it and 403/404 if they don't have it?

@dcramer
Copy link
Member Author

dcramer commented Nov 4, 2021

@wedamija if we do we will likely want to change that in quite a few places. I'm not opposed but also not concerneda bout risk

@dcramer
Copy link
Member Author

dcramer commented Nov 4, 2021

Will revisit perms issue as a whole later

@dcramer dcramer merged commit e3530f2 into master Nov 4, 2021
@dcramer dcramer deleted the feat/permission-config-api branch November 4, 2021 20:15
@github-actions github-actions bot locked and limited conversation to collaborators Nov 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants