mirror of
https://github.com/gravitl/netmaker.git
synced 2026-04-22 16:07:11 +08:00
fix(go): skip global network admin and user groups when splitting;
This commit is contained in:
@@ -1090,7 +1090,9 @@ func EnsureDefaultUserGroupNetworkPolicies(old, new *schema.UserGroup, migrate b
|
||||
|
||||
policyEnabled := make(map[schema.NetworkID]bool)
|
||||
defaultAclName := GetDefaultGroupAclName(groupName)
|
||||
if migrate {
|
||||
if migrate &&
|
||||
groupID != GetDefaultGlobalAdminGroupID().String() &&
|
||||
groupID != GetDefaultGlobalUserGroupID().String() {
|
||||
acls := logic.ListAcls()
|
||||
for _, acl := range acls {
|
||||
if acl.Default {
|
||||
|
||||
Reference in New Issue
Block a user