Add before_filter in gallery

This commit is contained in:
Christophe Vilayphiou committed 2012-09-12 17:52:24 +08:00
1 parent 3432d1359b
commit 4dff15cffb
2 files changed
+6

No files matched your search

@@ -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
@@ -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