Skip to content
Snippets Groups Projects
Commit 8114a2a8 authored by George Tsiolis's avatar George Tsiolis
Browse files

Override group sidebar links

parent bfb32b46
No related branches found
No related tags found
No related merge requests found
module GroupsHelper
def group_nav_link_paths
%w[groups#projects groups#edit ci_cd#show ldap_group_links#index hooks#index audit_events#index pipeline_quota#index]
end
def can_change_group_visibility_level?(group)
can?(current_user, :change_visibility_level, group)
end
Loading
Loading
Loading
Loading
@@ -88,7 +88,7 @@
%strong.fly-out-top-item-name
#{ _('Members') }
- if current_user && can?(current_user, :admin_group, @group)
= nav_link(path: %w[groups#projects groups#edit ci_cd#show]) do
= nav_link(path: group_nav_link_paths) do
= link_to edit_group_path(@group) do
.nav-icon-container
= sprite_icon('settings')
Loading
Loading
---
title: Override group sidebar links
merge_request: 16942
author: George Tsiolis
type: fixed
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