X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/672ecbf2d4ca909514c5f609ed76b020200cdf45..6525b509825dbbf1cbe8b30b34080aafc4e5bde3:/services/api/app/models/api_client_authorization.rb diff --git a/services/api/app/models/api_client_authorization.rb b/services/api/app/models/api_client_authorization.rb index b267a63882..8ea9f7bd88 100644 --- a/services/api/app/models/api_client_authorization.rb +++ b/services/api/app/models/api_client_authorization.rb @@ -161,7 +161,8 @@ class ApiClientAuthorization < ArvadosModel end end - if Rails.configuration.new_users_are_active + if Rails.configuration.new_users_are_active || + Rails.configuration.auto_activate_users_from.include?(remote_user['uuid'][0..4]) # Update is_active to whatever it is at the remote end user.is_active = remote_user['is_active'] elsif !remote_user['is_active']