Add before_filter in gallery
This commit is contained in:
parent
3432d1359b
commit
4dff15cffb
|
@ -1,6 +1,9 @@
|
||||||
class Panel::Gallery::BackEnd::AlbumImagesController < OrbitBackendController
|
class Panel::Gallery::BackEnd::AlbumImagesController < OrbitBackendController
|
||||||
include AdminHelper
|
include AdminHelper
|
||||||
|
|
||||||
|
# before_filter :force_order_for_visitor,:only=>[:index]
|
||||||
|
before_filter :force_order_for_user#,:except => [:index]
|
||||||
|
|
||||||
def show
|
def show
|
||||||
if is_manager? || is_admin? || is_sub_manager?
|
if is_manager? || is_admin? || is_sub_manager?
|
||||||
@authenticated = true #turn this value to false for view only
|
@authenticated = true #turn this value to false for view only
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
class Panel::Gallery::BackEnd::AlbumsController < OrbitBackendController
|
class Panel::Gallery::BackEnd::AlbumsController < OrbitBackendController
|
||||||
include AdminHelper
|
include AdminHelper
|
||||||
|
|
||||||
|
# before_filter :force_order_for_visitor,:only=>[:index]
|
||||||
|
before_filter :force_order_for_user#,:except => [:index]
|
||||||
|
|
||||||
def index
|
def index
|
||||||
if is_manager? || is_admin? || is_sub_manager?
|
if is_manager? || is_admin? || is_sub_manager?
|
||||||
@authenticated = true #turn this value to false for view only
|
@authenticated = true #turn this value to false for view only
|
||||||
|
|
Loading…
Reference in New Issue