-
Notifications
You must be signed in to change notification settings - Fork 186
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
Non-admin user tries to delete non-existing result 401 #5738
Comments
CC @ScharfViktor @micbar |
it is not bug IMHO or low priority backend seems to have two checks:
if a user with uuid exists -> we get a 401. In any case, a non-admin cannot remove the user |
I think for security reasons it would be better to return 401 if the user that tries to delete does not have enough permissions, because that would prevent people from guessing user-names. |
butonic gave some insight in this comment #5742 (comment)
|
Describe the bug
Non-admin users try to delete the non-existing users. Then the API request returns a 401 HTTP status code.
Expected behavior
The HTTP status code should be 404. Forbidden rather than 401 Unauthorized
Actual behavior
Return 401 Unauthorized
The text was updated successfully, but these errors were encountered: