X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cd3966ee048de85447418f00869eec59b38fd7b2..79bce4a71a58118a9003882e0ca9bbfb9d2957a9:/services/api/lib/current_api_client.rb?ds=inline diff --git a/services/api/lib/current_api_client.rb b/services/api/lib/current_api_client.rb index 98112c858b..cfdae0bdde 100644 --- a/services/api/lib/current_api_client.rb +++ b/services/api/lib/current_api_client.rb @@ -189,6 +189,16 @@ module CurrentApiClient end end + def system_root_token_api_client + $system_root_token_api_client = check_cache $system_root_token_api_client do + act_as_system_user do + ActiveRecord::Base.transaction do + ApiClient.find_or_create_by!(is_trusted: true, url_prefix: "", name: "SystemRootToken") + end + end + end + end + def empty_collection_pdh 'd41d8cd98f00b204e9800998ecf8427e+0' end