Make /artists_versions and /artist_commentaries/search visible to all.

This commit is contained in:
evazion
2019-08-15 12:51:51 -05:00
parent a64cd50be4
commit df8391aec0
2 changed files with 4 additions and 2 deletions

View File

@@ -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])

View File

@@ -1,5 +1,4 @@
class ArtistVersionsController < ApplicationController
before_action :member_only
respond_to :html, :xml, :json
def index