-
Notifications
You must be signed in to change notification settings - Fork 19
Roles #52
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
Roles #52
Conversation
SylteA
left a comment
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.
Documentation needs to be improved (Documenting every response code, updating default response codes, desciptions / summaries for each endpoint)
Any endpoints returning 204 need "" as content, otherwise they will return null
| user_permissions = 0 | ||
| for role in roles: | ||
| user_permissions |= role.permissions | ||
|
|
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.
Just adding a comment here stating what this will do helps a lot.
# Check if the user has administrator permission or all the permissions provided in the roleI don't think we should check all the permissions though, just the permissions that are higher than ManageRoles.
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.
permissions that are "higher"?
No description provided.