New Interface for App Auth and Object Auth
This commit is contained in:
1 parent
cb25cf60a9
commit
20a1a6e30f
23 files changed
+442
-14
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ include ActionView::Helpers::UrlHelper
|
||||
oa = bulletin_category.get_object_auth_by_title(type)
|
||||
end
|
||||
# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
|
||||
link_to t('announcement.bulletin.cate_auth'),panel_announcement_back_end_bulletin_category_setting_path(bulletin_category)
|
||||
link_to t('announcement.bulletin.cate_auth'),admin_object_auth_ob_auth_path(oa)
|
||||
end
|
||||
|
||||
end
|
||||
@@ -18,6 +18,10 @@ class BulletinCategory
|
||||
|
||||
has_many :bulletins
|
||||
|
||||
def pp_object
|
||||
i18n_variable[I18n.locale]
|
||||
end
|
||||
|
||||
def self.from_id(id)
|
||||
BulletinCategory.find(id) rescue nil
|
||||
end
|
||||
|
||||
Vendored
+1
-1
@@ -10,7 +10,7 @@ include ActionView::Helpers::UrlHelper
|
||||
oa = news_bulletin_category.get_object_auth_by_title(type)
|
||||
end
|
||||
# link_to t('announcement.bulletin.cate_auth'), edit_admin_object_auth_path(oa)
|
||||
link_to t('announcement.bulletin.cate_auth'),panel_news_back_end_news_bulletin_category_setting_path(news_bulletin_category)
|
||||
link_to t('announcement.bulletin.cate_auth'),admin_object_auth_ob_auth_path(oa)
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -18,6 +18,10 @@ class NewsBulletinCategory
|
||||
|
||||
has_many :news_bulletins
|
||||
|
||||
def pp_object
|
||||
i18n_variable[I18n.locale]
|
||||
end
|
||||
|
||||
def self.from_id(id)
|
||||
NewsBulletinCategory.find(id) rescue nil
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user