summaryrefslogtreecommitdiff
path: root/lib/sidebars/groups/menus/customer_relations_menu.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sidebars/groups/menus/customer_relations_menu.rb')
-rw-r--r--lib/sidebars/groups/menus/customer_relations_menu.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sidebars/groups/menus/customer_relations_menu.rb b/lib/sidebars/groups/menus/customer_relations_menu.rb
index 002197965d1..0aaa6ec45f1 100644
--- a/lib/sidebars/groups/menus/customer_relations_menu.rb
+++ b/lib/sidebars/groups/menus/customer_relations_menu.rb
@@ -24,6 +24,8 @@ module Sidebars
override :render?
def render?
+ return false unless context.group.root?
+
can_read_contact? || can_read_organization?
end