From 24800751fbb43730d15af0a15e5280ccff80e4c4 Mon Sep 17 00:00:00 2001 From: Romano Licker Date: Wed, 14 Dec 2011 14:36:14 +0100 Subject: [PATCH] [accessibility] hide inaccessible backlogs view --- init.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init.rb b/init.rb index 09ac45b53a..25c3a70aa9 100644 --- a/init.rb +++ b/init.rb @@ -110,5 +110,6 @@ Redmine::Plugin.register :backlogs do {:controller => :rb_master_backlogs, :action => :show}, :caption => :project_module_backlogs, :after => :new_issue, - :param => :project_id + :param => :project_id, + :if => lambda { User.current.respond_to?("impaired?") and !User.current.impaired? } end