Skip to content

Conversation

@mohamed040406
Copy link
Contributor

No description provided.

@mohamed040406 mohamed040406 added the enhancement New feature or request label Aug 29, 2021
@mohamed040406 mohamed040406 self-assigned this Aug 29, 2021
@mohamed040406 mohamed040406 marked this pull request as ready for review September 5, 2021 14:02
@mohamed040406 mohamed040406 requested review from SylteA and takos22 and removed request for SylteA September 5, 2021 14:02
Copy link
Member

@SylteA SylteA left a 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

Copy link
Member

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 role

I don't think we should check all the permissions though, just the permissions that are higher than ManageRoles.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

permissions that are "higher"?

@mohamed040406 mohamed040406 added this to the Initial Release milestone Sep 6, 2021
@mohamed040406 mohamed040406 merged commit 377c298 into fastapi-rewrite Sep 6, 2021
@mohamed040406 mohamed040406 deleted the feature/roles branch September 6, 2021 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants