From c5a8cbc06328eb0442e1699b3afee4f80cc7bb5d Mon Sep 17 00:00:00 2001 From: JiangRu Date: Thu, 29 Jan 2015 15:50:00 +0800 Subject: [PATCH] fix manage & sub_manage can't add&edit problem --- app/views/admin/ad_banners/_index.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/ad_banners/_index.html.erb b/app/views/admin/ad_banners/_index.html.erb index dd467ed..90eced5 100644 --- a/app/views/admin/ad_banners/_index.html.erb +++ b/app/views/admin/ad_banners/_index.html.erb @@ -232,7 +232,7 @@ - <% if can_edit_or_delete?(banner) %> + <% if can_edit_or_delete?(banner) && current_user.is_admin? or current_user.is_manager?(@module_app) or current_user.is_sub_manager?(@module_app) %>
" data-id="<%= banner.id.to_s %>" @@ -275,7 +275,7 @@
- <% if can_edit_or_delete?(banner) %> + <% if can_edit_or_delete?(banner) && current_user.is_admin? or current_user.is_manager?(@module_app) or current_user.is_sub_manager?(@module_app) %>