Skip to content

Commit

Permalink
fix transfers controller behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson committed Apr 27, 2023
1 parent 28e263d commit e274f7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/hyrax/ability.rb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ def registered_user?
# Returns true if the current user is the depositor of the specified work
# @param document_id [String] the id of the document.
def user_is_depositor?(document_id)
doc = Hyrax::SolrService.search_by_id(document_id, { fl: 'depositor_ssim' })
doc = Hyrax::SolrService.search_by_id(document_id, fl: 'depositor_ssim')
current_user.user_key == doc['depositor_ssim']&.first
end

Expand Down

0 comments on commit e274f7d

Please sign in to comment.