X-Git-Url: http://git.osdn.net/view?p=pettanr%2Fpettanr.git;a=blobdiff_plain;f=app%2Fcontrollers%2Fspeeches_controller.rb;h=db947ad16a479644e7302e983c50b659db54db55;hp=432c69671ea34aec78bae2ed2286e479bb3cdb50;hb=ec3036dc9026581d95947e5ecc5b600608b036b2;hpb=5d4a84528ce84792699f6987262d3b8ac5453b52 diff --git a/app/controllers/speeches_controller.rb b/app/controllers/speeches_controller.rb index 432c6967..db947ad1 100644 --- a/app/controllers/speeches_controller.rb +++ b/app/controllers/speeches_controller.rb @@ -1,13 +1,13 @@ class SpeechesController < ApplicationController if Manifest.manifest.magic_numbers['run_mode'] == 0 - before_filter :authenticate_user, :only => [] - before_filter :authenticate_author, :only => [] + before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy] + before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy] else before_filter :authenticate_reader, :only => [ :index, :show, :by_speech_balloon, :by_writing_format, :count, :count_by_speech_balloon, :count_by_writing_format ] - before_filter :authenticate_user, :only => [] - before_filter :authenticate_author, :only => [] + before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy] + before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy] end before_filter :authenticate_admin!, :only => [] @@ -54,4 +54,12 @@ class SpeechesController < ApplicationController list_count end + def new + form_new + end + + def edit + form_edit + end + end