From b99966d8acc28b691b26c718890e7da3e0ece1c2 Mon Sep 17 00:00:00 2001 From: Ben Pennell Date: Tue, 6 Dec 2022 19:04:43 -0500 Subject: [PATCH] Move paren down a line --- app/controllers/hyrax/downloads_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/hyrax/downloads_controller.rb b/app/controllers/hyrax/downloads_controller.rb index 105bf52018..6689f6557a 100644 --- a/app/controllers/hyrax/downloads_controller.rb +++ b/app/controllers/hyrax/downloads_controller.rb @@ -58,7 +58,8 @@ def authorize_download! authorize! :download, params[asset_param_key] # Deny access if the work containing this file is restricted by a workflow return unless workflow_restriction?(file_set_parent(params[asset_param_key]), - ability: current_ability) + ability: current_ability + ) raise Hyrax::WorkflowAuthorizationException rescue CanCan::AccessDenied, Hyrax::WorkflowAuthorizationException unauthorized_image = Rails.root.join("app", "assets", "images", "unauthorized.png")