Skip to content

Commit

Permalink
Move paren down a line
Browse files Browse the repository at this point in the history
  • Loading branch information
bbpennel committed Dec 7, 2022
1 parent 94a96f5 commit b99966d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/hyrax/downloads_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b99966d

Please sign in to comment.