Commit 3eeb6431 authored by Valery Sizov's avatar Valery Sizov

Fix spec

parent c56d33e1
......@@ -144,6 +144,10 @@ module API
authorize! :push_code, user_project
end
def validate_access_level?(level)
Gitlab::Access.options_with_owner.values.include? level.to_i
end
def authorize_admin_project
authorize! :admin_project, user_project
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