- layout 'test' if Pettanr::TestLayout
- before_filter :authenticate_user!, :only => [:index, :show, :new, :edit, :create, :update, :destroy]
- before_filter :authenticate_admin!, :only => [:list, :browse]
-
- public
+ if Manifest.manifest.magic_numbers['run_mode'] == 0
+ before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy, :catch]
+ before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy, :catch]
+ else
+ before_filter :authenticate_reader, :only => [
+ :index, :show, :by_scroll, :by_sheet, :by_author, :by_speech_balloon_template
+ ]
+ before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy, :catch]
+ before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy, :catch]
+ end