From e706e2628c71b04ea92ab33e5e573906f893f93c Mon Sep 17 00:00:00 2001 From: "Ben W. Brumfield" Date: Fri, 24 Jun 2022 04:58:09 -0500 Subject: [PATCH] Fixes #3185 by fixing typo --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d444609ffe..a63d342d79 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -355,7 +355,7 @@ def track_action def check_api_access if (defined? @collection) && @collection - if @collection.restricted? && !@collection.api_access + if @collection.restricted && !@collection.api_access if @api_user.nil? || !(@api_user.like_owner?(@collection)) render :status => 403, :plain => 'This collection is private. The collection owner must enable API access to it or make it public for it to appear.' end