Commit 6558e52d authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

More fixes to project members api

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent ce49f035
...@@ -6,8 +6,8 @@ module API ...@@ -6,8 +6,8 @@ module API
resource :projects do resource :projects do
helpers do helpers do
def handle_project_member_errors(errors) def handle_project_member_errors(errors)
if errors[:project_access].any? if errors[:access_level].any?
error!(errors[:project_access], 422) error!(errors[:access_level], 422)
end end
not_found! not_found!
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment