Hide ordergroup link for non ordergroup members.

This commit is contained in:
Benjamin Meichsner 2009-08-05 11:49:07 +02:00
parent c7e37fc7b2
commit ad94006978

View file

@ -4,7 +4,7 @@
{ :name => "Start", :url => root_path, :active => ["index", "home"], { :name => "Start", :url => root_path, :active => ["index", "home"],
:subnav => [ :subnav => [
{ :name => "Meine Aufgaben", :url => "/home/tasks" }, { :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"} { :name => "Mein Profil", :url => "/home/profile"}
] ]
}, },