fix: restart permission check

pull/3011/head
icey-yu 9 months ago
parent 1110af98ef
commit 0687a8fc5d

@ -314,7 +314,7 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
configGroup.POST("/reset_config", cm.ResetConfig) configGroup.POST("/reset_config", cm.ResetConfig)
} }
{ {
r.POST("/restart", cm.Restart) r.POST("/restart", cm.CheckAdmin, cm.Restart)
} }
return r, nil return r, nil
} }

Loading…
Cancel
Save