Module Auth for video

This commit is contained in:
saurabhbhatia 2013-08-23 15:21:52 +08:00
parent 45e987d6f5
commit 155722519b
2 changed files with 9 additions and 4 deletions

View File

@ -1,7 +1,10 @@
class Panel::Video::BackEnd::ChannelVideosController < OrbitBackendController class Panel::Video::BackEnd::ChannelVideosController < OrbitBackendController
before_filter :force_order_for_visitor,:only => [:index, :new, :edit, :delete] # before_filter :force_order_for_visitor,:only => [:index, :new, :edit, :delete]
before_filter :force_order_for_user,:except => [:index] # before_filter :force_order_for_user,:except => [:index]
open_for_admin
open_for_manager
open_for_sub_manager
def index def index
@channel_videos = ChannelVideo.all @channel_videos = ChannelVideo.all
respond_to do |format| respond_to do |format|
@ -55,4 +58,4 @@ class Panel::Video::BackEnd::ChannelVideosController < OrbitBackendController
redirect_to panel_video_back_end_channel_videos_url redirect_to panel_video_back_end_channel_videos_url
end end
end end

View File

@ -16,6 +16,8 @@ module Videos
frontend_i18n "video.front_end.channel_videos" frontend_i18n "video.front_end.channel_videos"
end end
end end
authorizable
# category ["BulletinCategory"] # category ["BulletinCategory"]