From 4e0af350fc84933b756b811d148054e0b6ed66a2 Mon Sep 17 00:00:00 2001 From: Martin Fenner Date: Sat, 1 Jun 2019 08:04:54 +0200 Subject: [PATCH] only show findable dois in works api. #284 --- app/controllers/works_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/works_controller.rb b/app/controllers/works_controller.rb index f409648e0..9dbdc003d 100644 --- a/app/controllers/works_controller.rb +++ b/app/controllers/works_controller.rb @@ -46,7 +46,8 @@ def index sample_size: params[:sample], page: page, sort: sort, - random: params[:sample].present? ? true : false) + random: params[:sample].present? ? true : false, + current_user: current_user) end begin