Skip to content
Snippets Groups Projects
Commit 25a1ef69 authored by Kamil Trzcińśki's avatar Kamil Trzcińśki
Browse files

Introduce policy check for clusters navigation option

parent 25076520
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -293,6 +293,7 @@ module ProjectsHelper
snippets: :read_project_snippet,
settings: :admin_project,
builds: :read_build,
clusters: :read_cluster,
labels: :read_label,
issues: :read_issue,
project_members: :read_project_member,
Loading
Loading
Loading
Loading
@@ -189,11 +189,11 @@
%span
Charts
 
-# - if project_nav_tab? :clusters TODO @shinya @ayufan
= nav_link(controller: :clusters) do
= link_to project_clusters_path(@project), title: 'Clusters', class: 'shortcuts-clusters' do
%span
Clusters
- if project_nav_tab? :clusters
= nav_link(controller: :clusters) do
= link_to project_clusters_path(@project), title: 'Clusters', class: 'shortcuts-clusters' do
%span
Clusters
 
- if project_nav_tab? :wiki
= nav_link(controller: :wikis) do
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment