@@notification_tests = []
@@notification_tests.push lambda { |controller, current_user|
+ return nil if Rails.configuration.shell_in_a_box_url
AuthorizedKey.limit(1).where(authorized_user_uuid: current_user.uuid).each do
return nil
end
pdhs.each do |x|
@all_pdhs_for[x] = []
end
- # TODO: make sure we get every page of results from API server
+
Collection.select(%w(portable_data_hash)).where(portable_data_hash: pdhs).distinct().each do |collection|
@all_pdhs_for[collection.portable_data_hash] << collection
end