From ad940069788f4d34f602c62613cdf9917533262c Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Wed, 5 Aug 2009 11:49:07 +0200 Subject: [PATCH] Hide ordergroup link for non ordergroup members. --- app/views/layouts/_main_tabnav.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/layouts/_main_tabnav.html.erb b/app/views/layouts/_main_tabnav.html.erb index e677d820..9b83f8de 100644 --- a/app/views/layouts/_main_tabnav.html.erb +++ b/app/views/layouts/_main_tabnav.html.erb @@ -4,7 +4,7 @@ { :name => "Start", :url => root_path, :active => ["index", "home"], :subnav => [ { :name => "Meine Aufgaben", :url => "/home/tasks" }, - { :name => "Meine Bestellgruppe", :url => "/home/ordergroup"}, + { :name => "Meine Bestellgruppe", :url => "/home/ordergroup", :access_denied? => (!u.ordergroup)}, { :name => "Mein Profil", :url => "/home/profile"} ] },