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

Throw forbidden exception when authorized user doesn't have the required permissions #475

Closed
wants to merge 1 commit into from

Conversation

Yasasr1
Copy link
Contributor

@Yasasr1 Yasasr1 commented Jul 4, 2023

Purpose

Only the tenant owner is allowed to remove users from the Administrator role. Framework throws an error if the authorized user doesn't have the permissions when making the request. Previously a 500 error was thrown in this scenario. However 403 should be returned instead of 500.

Related PRs

@Yasasr1
Copy link
Contributor Author

Yasasr1 commented Jul 6, 2023

Closing the PR since new commits were not tracked because of a issue with github

@Yasasr1 Yasasr1 closed this Jul 6, 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 this pull request may close these issues.

2 participants