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

[RBAC] User and Team Role Assignment endpoints showing POST action on OPTIONS when unauthorized #368

Open
Dostonbek1 opened this issue May 3, 2024 · 0 comments
Labels

Comments

@Dostonbek1
Copy link
Member

Dostonbek1 commented May 3, 2024

Bug Summary

When logged in as a normal user with no roles, sending OPTIONS request on /role_user_assignments/ and role_team_assignments/ endpoints return a response that includes POST action.

Screenshot 2024-05-03 at 3 53 20 PM

Expected Behavior

Since POST action OPTIONS response is used to determine the user's ability to create a new instance of the resource, the above behavior is wrong. The expected behavior should be to show POST action to only users that have the permission to perform POST request on role assignments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant