diff --git a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/album_images_controller.rb b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/album_images_controller.rb index 8273ce3d..d29ecd40 100644 --- a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/album_images_controller.rb +++ b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/album_images_controller.rb @@ -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 diff --git a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/albums_controller.rb b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/albums_controller.rb index 55145441..59c251a4 100644 --- a/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/albums_controller.rb +++ b/vendor/built_in_modules/gallery/app/controllers/panel/gallery/back_end/albums_controller.rb @@ -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