From 549f0a0d6f686d1472b6d5bacc3eb85927c915d5 Mon Sep 17 00:00:00 2001 From: Tom Clegg Date: Tue, 3 Feb 2015 22:12:06 -0500 Subject: [PATCH] 2659: Fix infinite recursion while creating system_user. --- 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 a32ce39299..a47a4583cd 100644 --- a/services/api/app/models/user.rb +++ b/services/api/app/models/user.rb @@ -411,8 +411,8 @@ class User < ArvadosModel # Give the special "System group" permission to manage this user and # all of this user's stuff. - # def add_system_group_permission_link + return true if uuid == system_user_uuid act_as_system_user do Link.create(link_class: 'permission', name: 'can_manage', -- 2.30.2