class ArtistsController < ApplicationController
if Manifest.manifest.magic_numbers['run_mode'] == 0
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
- before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
+ before_filter :authenticate_artist, :only => [:edit, :update, :destroy]
else
- before_filter :authenticate_resource_reader, :only => [:index, :show, :resource_pictures]
+ before_filter :authenticate_resource_reader, :only => [
+ :index, :show
+ ]
before_filter :authenticate_user, :only => [:new, :create, :edit, :update, :destroy]
- before_filter :authenticate_author, :only => [:new, :create, :edit, :update, :destroy]
- end
-
- def self.model
- Artist
+ before_filter :authenticate_artist, :only => [:edit, :update, :destroy]
end
def index
end
end
- def count
- list_count
- end
-
def new
form_new
end