From 155722519b5a92b2e53ac03c39468b89535a8c51 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Fri, 23 Aug 2013 15:21:52 +0800 Subject: [PATCH] Module Auth for video --- .../panel/video/back_end/channel_videos_controller.rb | 11 +++++++---- vendor/built_in_modules/video/init.rb | 2 ++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/vendor/built_in_modules/video/app/controllers/panel/video/back_end/channel_videos_controller.rb b/vendor/built_in_modules/video/app/controllers/panel/video/back_end/channel_videos_controller.rb index e9ba49fe1..c6c7f09db 100644 --- a/vendor/built_in_modules/video/app/controllers/panel/video/back_end/channel_videos_controller.rb +++ b/vendor/built_in_modules/video/app/controllers/panel/video/back_end/channel_videos_controller.rb @@ -1,7 +1,10 @@ class Panel::Video::BackEnd::ChannelVideosController < OrbitBackendController - before_filter :force_order_for_visitor,:only => [:index, :new, :edit, :delete] - before_filter :force_order_for_user,:except => [:index] - +# before_filter :force_order_for_visitor,:only => [:index, :new, :edit, :delete] +# before_filter :force_order_for_user,:except => [:index] + open_for_admin + open_for_manager + open_for_sub_manager + def index @channel_videos = ChannelVideo.all respond_to do |format| @@ -55,4 +58,4 @@ class Panel::Video::BackEnd::ChannelVideosController < OrbitBackendController redirect_to panel_video_back_end_channel_videos_url end -end \ No newline at end of file +end diff --git a/vendor/built_in_modules/video/init.rb b/vendor/built_in_modules/video/init.rb index 2e24b6c22..eb13bde10 100644 --- a/vendor/built_in_modules/video/init.rb +++ b/vendor/built_in_modules/video/init.rb @@ -16,6 +16,8 @@ module Videos frontend_i18n "video.front_end.channel_videos" end end + + authorizable # category ["BulletinCategory"]