Skip to content

Commit

Permalink
create default role and groups for existing networks
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek9686 committed Sep 24, 2024
1 parent 44b950d commit d2afe84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions migrate/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ func syncUsers() {
nodes, err := logic.GetAllNodes()
if err == nil {
for _, netI := range networks {
logic.CreateDefaultNetworkRolesAndGroups(models.NetworkID(netI.NetID))
networkNodes := logic.GetNetworkNodesMemory(nodes, netI.NetID)
for _, networkNodeI := range networkNodes {
if networkNodeI.IsIngressGateway {
Expand Down

0 comments on commit d2afe84

Please sign in to comment.