mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-17 15:56:39 +00:00
fix StoreAutoGroups len alloc
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user