[ARVADOS] updated: 4498d81399482be11a00e5e2223ef08d0576ef06
git at public.curoverse.com
git at public.curoverse.com
Sun Nov 2 23:41:06 EST 2014
Summary of changes:
services/api/app/models/user.rb | 2 ++
1 file changed, 2 insertions(+)
via 4498d81399482be11a00e5e2223ef08d0576ef06 (commit)
from 28053f8adcf1c36ba0a8cdf9c0b348765e68591a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 4498d81399482be11a00e5e2223ef08d0576ef06
Author: Ward Vandewege <ward at curoverse.com>
Date: Sun Nov 2 23:39:40 2014 -0500
system_user and anonymous_user should be excluded from
auto_setup_new_user, always.
refs #4383
diff --git a/services/api/app/models/user.rb b/services/api/app/models/user.rb
index ecd50cc..e48693b 100644
--- a/services/api/app/models/user.rb
+++ b/services/api/app/models/user.rb
@@ -451,6 +451,8 @@ class User < ArvadosModel
def auto_setup_new_user
return true if !Rails.configuration.auto_setup_new_users
return true if !self.email
+ return true if self.uuid == system_user_uuid
+ return true if self.uuid == anonymous_user_uuid
if Rails.configuration.auto_setup_new_users_with_vm_uuid ||
Rails.configuration.auto_setup_new_users_with_repository
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list