Add before_filter in gallery

This commit is contained in:
Christophe Vilayphiou 2012-09-12 17:52:24 +08:00
parent 3432d1359b
commit 4dff15cffb
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,9 @@
class Panel::Gallery::BackEnd::AlbumImagesController < OrbitBackendController
include AdminHelper
# before_filter :force_order_for_visitor,:only=>[:index]
before_filter :force_order_for_user#,:except => [:index]
def show
if is_manager? || is_admin? || is_sub_manager?
@authenticated = true #turn this value to false for view only

View File

@ -1,6 +1,9 @@
class Panel::Gallery::BackEnd::AlbumsController < OrbitBackendController
include AdminHelper
# before_filter :force_order_for_visitor,:only=>[:index]
before_filter :force_order_for_user#,:except => [:index]
def index
if is_manager? || is_admin? || is_sub_manager?
@authenticated = true #turn this value to false for view only