1 class ResourcePicturePicturesController < ApplicationController
2 if Manifest.manifest.magic_numbers['run_mode'] == 0
3 before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
5 before_filter :authenticate_reader, :only => [:index, :show, :by_original_picture, :by_resource_picture, :by_picture]
6 before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
13 def by_original_picture
17 def by_resource_picture
27 respond_to do |format|
28 show_prof_format format
29 format.json { render json: @item.to_json }
33 def count_by_original_picture
37 def count_by_resource_picture