Skip to content

Commit

Permalink
only show findable dois when role is user
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Aug 23, 2019
1 parent 9a544da commit 731e414
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/dois_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def index

response = nil

# only show findable DOIs to anonymous users
params[:state] = "findable" if current_user.nil?
# only show findable DOIs to anonymous users and role user
params[:state] = "findable" if current_user.nil? || current_user.role_id == "user"

if params[:id].present?
logger.info "[Benchmark] find_by_id " + Benchmark.ms {
Expand Down

0 comments on commit 731e414

Please sign in to comment.