From ed30fda285434392d731b24b295d82b1c41406dd Mon Sep 17 00:00:00 2001 From: spen Date: Thu, 11 Sep 2014 14:43:16 +0800 Subject: [PATCH] update engine --- lib/er_email/engine.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/er_email/engine.rb b/lib/er_email/engine.rb index 02050ef..eec069e 100644 --- a/lib/er_email/engine.rb +++ b/lib/er_email/engine.rb @@ -10,7 +10,7 @@ module ErEmail side_bar do head_label_i18n 'er_email.er_email', icon_class: "icons-paperplane" - available_for [:admin,:manager,:sub_manager] + available_for "sub_managers" active_for_controllers (['admin/er_emails']) head_link_path "admin_er_emails_path" @@ -18,19 +18,19 @@ module ErEmail :link_path=>"admin_er_emails_path" , :priority=>1, :active_for_action=>{'admin/er_emails'=>'index'}, - :available_for => [:all] + :available_for => 'sub_managers' context_link 'new_', :link_path=>"new_admin_er_email_path" , :priority=>2, :active_for_action=>{'admin/er_emails'=>'new'}, - :available_for => [:sub_manager] + :available_for => 'sub_managers' context_link 'categories', :link_path=>"admin_module_app_categories_path" , :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'er_email').id}", :priority=>3, :active_for_action=>{'admin/er_emails'=>'categories'}, :active_for_category => 'ErEmail', - :available_for => [:manager] + :available_for => 'managers' end end