1 class SpeechesController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_action :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
4 before_action :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
6 before_action :authenticate_reader, :only => [
8 :by_author, :by_speech_balloon, :by_speech_balloon_template, :by_writing_format
10 before_action :authenticate_user, :only => [:new, :edit, :create, :update, :destroy]
11 before_action :authenticate_author, :only => [:new, :edit, :create, :update, :destroy]
13 before_action :authenticate_admin!, :only => []
20 filer_list param: params[:id]
24 filer_list param: params[:id]
27 def by_speech_balloon_template
28 filer_list param: params[:id]
32 filer_list param: params[:id]
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