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