mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-25 05:49:06 +01:00
fix StoreAutoGroups len alloc
This commit is contained in:
@@ -117,7 +117,7 @@ func (u *User) LoadAutoGroups() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (u *User) StoreAutoGroups() {
|
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 {
|
for _, groupID := range u.AutoGroups {
|
||||||
u.Groups = append(u.Groups, &GroupUser{
|
u.Groups = append(u.Groups, &GroupUser{
|
||||||
AccountID: u.AccountID,
|
AccountID: u.AccountID,
|
||||||
|
|||||||
Reference in New Issue
Block a user