gitlab-org--gitlab-foss/lib
Felix Gilcher ce6436b98a Don't crash when removing a user that's not project member
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
2013-02-01 13:53:35 +00:00
..
api Don't crash when removing a user that's not project member 2013-02-01 13:53:35 +00:00
assets
gitlab satellites logs 2013-01-29 12:12:24 +02:00
hooks sidekiq with green tests 2013-01-09 09:14:05 +03:00
redcarpet/render Fix parsing of ref-like Urls in links and images in GFM 2013-01-16 22:39:56 +01:00
support Add subdir support for rewrite-hooks script 2012-12-31 17:46:40 +02:00
tasks Merge pull request #2801 from Takuto88/master 2013-01-28 10:33:59 -08:00
api.rb log fatal errors that we catch 2013-02-01 10:23:23 +00:00
event_filter.rb
extracts_path.rb Remove relative_url_root from path. Fixes #2602 2013-01-23 17:29:46 +09:00
file_size_validator.rb
gitolited.rb more refactoring using models/concerns 2013-01-03 09:06:07 +02:00
static_model.rb Fixed styles, ProjectHook specs etc 2013-01-05 00:35:38 +02:00