1 class AuthorsController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_user, :only => [:new, :create, :edit, :update]
4 before_filter :authenticate_author, :only => [:edit, :update]
6 before_filter :authenticate_reader, :only => [:index, :show, :count]
7 before_filter :authenticate_user, :only => [:new, :create, :edit, :update]
8 before_filter :authenticate_author, :only => [:edit, :update]
19 def show_html_format format
26 respond_to do |format|
27 show_html_format format
28 show_prof_format format
29 show_json_format format
47 @item = @my_model_class.new
49 @item.attributes = params[@my_model_class.item_name]
50 @item.overwrite @operators
51 render_create root_path
56 @item.attributes = params[@my_model_class.item_name]
57 @item.overwrite @operators
58 render_update '/home/configure'