ce6436b98a
The attempt to revoke project access for a user that was not member of the project results in a 500 Internal Server error where it actually should result in a 200 OK since after the operation, the user is not member of the project. This turns the operation into an idempotent call that can be repeated with no ill effects. Updated the spec and changed the code accordingly. However, the result differs slightly, as we can't return the users project access level if the user was not member. I'm not aware if anybody relies on the result of this call. Fixes #2832 |
||
---|---|---|
.. | ||
contexts | ||
controllers | ||
factories | ||
helpers | ||
lib | ||
mailers | ||
models | ||
observers | ||
requests | ||
routing | ||
support | ||
tasks/gitlab | ||
workers | ||
factories.rb | ||
factories_spec.rb | ||
seed_project.tar.gz | ||
spec_helper.rb |