X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7af0535d3b0d7960152b06b7211c26bfd7b208cb..313c0242e956ee4d97cfc9c7080daeaf42475164:/services/api/lib/tasks/manage_long_lived_tokens.rake diff --git a/services/api/lib/tasks/manage_long_lived_tokens.rake b/services/api/lib/tasks/manage_long_lived_tokens.rake index d83c2b6030..7a665ff7e7 100644 --- a/services/api/lib/tasks/manage_long_lived_tokens.rake +++ b/services/api/lib/tasks/manage_long_lived_tokens.rake @@ -29,7 +29,7 @@ namespace :db do # skip this token next end - if (auth.user.uuid =~ /-tpzed-000000000000000/).nil? + if (auth.user.uuid =~ /-tpzed-000000000000000/).nil? and (auth.user.uuid =~ /-tpzed-anonymouspublic/).nil? CurrentApiClientHelper.act_as_system_user do auth.update_attributes!(expires_at: exp_date) end @@ -58,7 +58,7 @@ namespace :db do # skip this token next end - if not auth.user.nil? and (auth.user.uuid =~ /-tpzed-000000000000000/).nil? + if not auth.user.nil? and (auth.user.uuid =~ /-tpzed-000000000000000/).nil? and (auth.user.uuid =~ /-tpzed-anonymouspublic/).nil? user_ids.add(auth.user_id) token_count += 1 end