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]
15 def show_html_format format
22 respond_to do |format|
23 show_html_format format
24 show_prof_format format
25 show_json_format format
43 @item = @my_model_class.new
45 @item.attributes = params[@my_model_class.item_name]
46 @item.overwrite @operators
47 render_create root_path
52 @item.attributes = params[@my_model_class.item_name]
53 @item.overwrite @operators
54 render_update '/home/configure'