First version of app and object auth for web_resource module. Basic fund is ok. backend need to be secued
This commit is contained in:
1 parent
03387d3c07
commit
82d78acbad
13 files changed
+54
-22
No files matched your search
@@ -15,7 +15,7 @@
|
||||
<% end -%>
|
||||
<h3><%= t("admin.ad.picture_list")%></h3>
|
||||
<div class="adbanner-list">
|
||||
<%if at_least_module_manager || sub_manager?(ad_banner_tab)%>
|
||||
<%if (at_least_module_manager || ad_banner_tab.cur_user_is_sub_manager_of(:edit) )%>
|
||||
<%= content_tag :div ,:class=>'adbanner-action' do%>
|
||||
<%= link_to t("admin.ad.new_image"),new_admin_ad_banner_ad_image_path(ad_banner_tab) ,:class => "btn btn-primary"%>
|
||||
<%= link_to t("modal.preview"), admin_realtime_preview_ad_banner_path(ad_banner_tab.id) , :class=>'preview_trigger btn btn-success'%>
|
||||
|
||||
Reference in new issue
Block a user