More fixes to project members api

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-15 12:01:45 +03:00
parent ce49f035cf
commit 6558e52d90
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
1 changed files with 2 additions and 2 deletions

View File

@ -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