starting ad_banner auth
This commit is contained in:
1 parent
2cd67356a5
commit
0a9f0bcc45
5 files changed
+17
-3
No files matched your search
@@ -12,5 +12,15 @@ module Admin::AdBannerHelper
|
||||
printable_ad_images.shuffle!
|
||||
end
|
||||
|
||||
def show_ad_banner_permission_link(ad_banner)
|
||||
type = 'edit'
|
||||
oa = ad_banner.get_object_auth_by_title(type)
|
||||
if oa.nil?
|
||||
ad_banner.object_auths.new(title: type ).save
|
||||
oa = ad_banner.get_object_auth_by_title(type)
|
||||
end
|
||||
# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
|
||||
link_to t('admin.ad.cate_auth'),admin_object_auth_ob_auth_path(oa)
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user