From ddcf9f820bd97a00756dbc7b5d9bff23dcdd7094 Mon Sep 17 00:00:00 2001 From: pascal Date: Fri, 9 Jan 2026 00:30:55 +0100 Subject: [PATCH] fix StoreAutoGroups len alloc --- management/server/types/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/management/server/types/user.go b/management/server/types/user.go index 761ed09e1..d14ce3637 100644 --- a/management/server/types/user.go +++ b/management/server/types/user.go @@ -117,7 +117,7 @@ func (u *User) LoadAutoGroups() { } func (u *User) StoreAutoGroups() { - u.Groups = make([]*GroupUser, 0, len(u.Groups)) + u.Groups = make([]*GroupUser, 0, len(u.AutoGroups)) for _, groupID := range u.AutoGroups { u.Groups = append(u.Groups, &GroupUser{ AccountID: u.AccountID,