diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 12:01:45 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-09-15 12:01:45 +0300 |
commit | 6558e52d904daa9f710192e838fdb7872b1682e2 (patch) | |
tree | 642ee737219156961df246374c07c43a987d4c6e | |
parent | ce49f035cfccc9cb2e86b986b8a69b18fcc9cadc (diff) | |
download | gitlab-ce-6558e52d904daa9f710192e838fdb7872b1682e2.tar.gz |
More fixes to project members api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | lib/api/project_members.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/project_members.rb b/lib/api/project_members.rb index c0e532f4137..1595ed0bc36 100644 --- a/lib/api/project_members.rb +++ b/lib/api/project_members.rb @@ -6,8 +6,8 @@ module API resource :projects do helpers do def handle_project_member_errors(errors) - if errors[:project_access].any? - error!(errors[:project_access], 422) + if errors[:access_level].any? + error!(errors[:access_level], 422) end not_found! end |