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
1 changed files with 1 additions and 1 deletions

View File

@ -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"}
]
},