From 9c68245e24eb0553c2bb56c4cfbee60bda469281 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Mon, 12 Oct 2020 15:42:20 -0400 Subject: [PATCH] 16989: setup_on_activate needs to happen after update, not before Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- services/api/app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/api/app/models/user.rb b/services/api/app/models/user.rb index 34a123e724..6f30b27a95 100644 --- a/services/api/app/models/user.rb +++ b/services/api/app/models/user.rb @@ -26,7 +26,7 @@ class User < ArvadosModel before_update :verify_repositories_empty, :if => Proc.new { username.nil? and username_changed? } - before_update :setup_on_activate + after_update :setup_on_activate before_create :check_auto_admin before_create :set_initial_username, :if => Proc.new { -- 2.30.2