1 class SpeechesController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
4 before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
6 before_filter :authenticate_reader, :only => [
8 :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_writing_format
10 before_filter :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
11 before_filter :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
13 before_filter :authenticate_admin!, :only => []
27 def by_speech_balloon_template
35 def show_html_format format
44 respond_to do |format|
45 show_html_format format
46 show_prof_format format
47 show_json_format format