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