1.make module app forbid unearthed access except from admin

2.override sidebar link when it's object_auth or app_auth.
This commit is contained in:
Fu Matthew authored and Matt K. Fu committed 2013-04-17 10:56:15 +08:00
1 parent 15be80a35f
commit 4a08a1992b
6 files changed
+39 -6

No files matched your search

@@ -3,6 +3,8 @@ class Panel::Announcement::BackEnd::ApprovalsController < OrbitBackendControlle
before_filter :is_admin?
include AdminHelper
# layout 'admin'
def preview_and_approve
@bulletin = Bulletin.find params[:bulletin_id]
end
@@ -1,5 +1,4 @@
class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController
include AdminHelper
include OrbitControllerLib::DivisionForDisable
before_filter :clean_values, :only => [:create, :update]
+1 -2
View File
@@ -131,8 +131,7 @@ module Announcement
context_link 'module_authorization',
:link_path=>"admin_module_app_manager_auth_proc_path(ModuleApp.first(conditions: {title: 'Announcement'}))",
:priority=>6,
:active_for_app_auth => 'Announcement',
:available_for => [:admin]
:active_for_app_auth => 'Announcement'
end
end
end