- layout 'test' if Pettanr::Application.test_layout
- before_filter :authenticate_user!, :only => [:index, :show]
- before_filter :authenticate_admin!, :only => [:list, :browse]
-
- # GET /panel_pictures
- # GET /panel_pictures.json
+ if Manifest.manifest.magic_numbers['run_mode'] == 0
+ before_filter :authenticate_user, :only => []
+ before_filter :authenticate_author, :only => []
+ else
+ before_filter :authenticate_reader, :only => [
+ :index, :show, :by_panel, :by_author, :count, :count_by_panel, :count_by_author
+ ]
+ before_filter :authenticate_user, :only => []
+ before_filter :authenticate_author, :only => []
+ end
+