X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/248c7167e95d970b770c43102ee68cf1319973f7..9aa380dbc94f9fb8be43e3fb691dadfcbefff94c:/services/api/app/controllers/database_controller.rb diff --git a/services/api/app/controllers/database_controller.rb b/services/api/app/controllers/database_controller.rb index b618a321e5..5c4cf7bc16 100644 --- a/services/api/app/controllers/database_controller.rb +++ b/services/api/app/controllers/database_controller.rb @@ -14,7 +14,7 @@ class DatabaseController < ApplicationController # use @example.com email addresses when creating user records, so # we can tell they're not valuable. user_uuids = User. - where('email is null or email not like ?', '%@example.com'). + where('email is null or (email not like ? and email not like ?)', '%@example.com', '%.example.com'). collect(&:uuid) fixture_uuids = YAML::load_file(File.expand_path('../../../test/fixtures/users.yml', @@ -75,9 +75,10 @@ class DatabaseController < ApplicationController raise end - require 'refresh_permission_view' + require 'update_permissions' - refresh_permission_view + refresh_permissions + refresh_trashed # Done. send_json success: true