Permission in top menu
Added by Gilles Baudino about 11 years ago
Hi all,
I've create a new item in the top menu :
menu :top_menu,:Dossier_bout_en_bout,"http://site.com",:html =>{:target=>'_blank'}, :if => Proc.new { User.current.logged? }, :last => true
I don't want to show this menu for a particular user. I try something like :
menu :top_menu,:Dossier_bout_en_bout,"http://site.com",:html =>{:target=>'_blank'}, :if => Proc.new { User.current.name != "myuser" }, :last => true
but it doesn't work.
I don't know redmine and ruby.
Thank you for your help.
Gilles.