diff --git a/app/controllers/artist_commentaries_controller.rb b/app/controllers/artist_commentaries_controller.rb index e532653a8..5a1a4f513 100644 --- a/app/controllers/artist_commentaries_controller.rb +++ b/app/controllers/artist_commentaries_controller.rb @@ -1,6 +1,6 @@ class ArtistCommentariesController < ApplicationController respond_to :html, :xml, :json, :js - before_action :member_only, :except => [:index, :show] + before_action :member_only, only: [:create_or_update, :revert] def index @commentaries = ArtistCommentary.search(search_params).paginate(params[:page], :limit => params[:limit]) @@ -11,6 +11,9 @@ class ArtistCommentariesController < ApplicationController end end + def search + end + def show if params[:id] @commentary = ArtistCommentary.find(params[:id]) diff --git a/app/controllers/artist_versions_controller.rb b/app/controllers/artist_versions_controller.rb index eaa279ea0..ce29e6e2a 100644 --- a/app/controllers/artist_versions_controller.rb +++ b/app/controllers/artist_versions_controller.rb @@ -1,5 +1,4 @@ class ArtistVersionsController < ApplicationController - before_action :member_only respond_to :html, :xml, :json def index