More fixes to project members api
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
ce49f035cf
commit
6558e52d90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue