fix manage & sub_manage can't add&edit problem
This commit is contained in:
parent
3b9b5975de
commit
c5a8cbc063
|
@ -232,7 +232,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% 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) %>
|
||||||
<div class="ad-banner-edit">
|
<div class="ad-banner-edit">
|
||||||
<a data-title="<%= t("ad_banner.setting") %>"
|
<a data-title="<%= t("ad_banner.setting") %>"
|
||||||
data-id="<%= banner.id.to_s %>"
|
data-id="<%= banner.id.to_s %>"
|
||||||
|
@ -275,7 +275,7 @@
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% 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) %>
|
||||||
<div id="ad-banner-<%= banner.id.to_s %>" class="ad-banner-detail">
|
<div id="ad-banner-<%= banner.id.to_s %>" class="ad-banner-detail">
|
||||||
<div class="ad-banner-images-wrap-arrow"></div>
|
<div class="ad-banner-images-wrap-arrow"></div>
|
||||||
<div class="ad-banner-images-wrap">
|
<div class="ad-banner-images-wrap">
|
||||||
|
|
Loading…
Reference in New Issue