- before_filter :authenticate_user!, :only => [:index, :show]
- before_filter :authenticate_admin!, :only => [:list, :browse, :destroy]
-
- # GET /speech_balloon_templates
- # GET /speech_balloon_templates.json
+ if Manifest.manifest.magic_numbers['run_mode'] == 0
+ before_filter :authenticate_user, :only => []
+ else
+ before_filter :authenticate_reader, :only => [
+ :index, :show, :by_panel, :by_system_picture
+ ]
+ before_filter :authenticate_user, :only => []
+ end
+ before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
+