X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/23c44c899b783a784bd9c60e3efda63cab2f6cc8..9379a6ccce1d9787ced772e82732f1d5de8bc756:/apps/workbench/app/controllers/application_controller.rb diff --git a/apps/workbench/app/controllers/application_controller.rb b/apps/workbench/app/controllers/application_controller.rb index 69c273c65e..db3d43040c 100644 --- a/apps/workbench/app/controllers/application_controller.rb +++ b/apps/workbench/app/controllers/application_controller.rb @@ -707,6 +707,7 @@ class ApplicationController < ActionController::Base @@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 @@ -1094,7 +1095,7 @@ class ApplicationController < ActionController::Base 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