Fix for authorization

Dashboard and page authorisation
This commit is contained in:
chris committed 2013-08-23 12:08:33 +08:00
1 parent 399dfad392
commit 45e987d6f5
3 files changed
+4 -12

No files matched your search

@@ -1,8 +1,6 @@
class Panel::PageContent::BackEnd::PageContextsController < OrbitBackendController
prepend_before_filter :set_public, :only => [:index]
#before_filter :is_admin?
open_for_visitor :only => [:index]
def index
@page_contexts = (params.has_key?:sort)? get_sorted_and_filtered("page_contexts", {:archived => false}) : get_sorted_page_from_structure