Commit 68cdeb71 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix permissions problems

- Allow developers to retry builds
- Hide advanced project options from CI page for non-admin users
parent cacc70da
......@@ -38,7 +38,7 @@ module Ci
end
def authorize_manage_builds!
unless can?(current_user, :admin_project, gl_project)
unless can?(current_user, :manage_builds, gl_project)
return page_404
end
end
......
......@@ -10,6 +10,7 @@
%span
Commits
%span.count= @project.commits.count
- if can?(current_user, :admin_project, gl_project)
= nav_link path: 'charts#show' do
= link_to ci_project_charts_path(@project) do
= icon('bar-chart fw')
......
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