1 class SheetPanelsController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_action :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
4 before_action :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
6 before_action :authenticate_reader, :only => [
7 :index, :show, :by_sheet, :by_panel, :by_author
9 before_action :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
10 before_action :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
31 respond_to do |format|
32 show_prof_format format
33 format.json { render json: @item.sheet_panel_as_json(@operators.author) }