Skip to content

Commit

Permalink
fix: restart permission check (#3011)
Browse files Browse the repository at this point in the history
  • Loading branch information
icey-yu authored Dec 27, 2024
1 parent dec423e commit 1af3184
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
configGroup.POST("/reset_config", cm.ResetConfig)
}
{
r.POST("/restart", cm.Restart)
r.POST("/restart", cm.CheckAdmin, cm.Restart)
}
return r, nil
}
Expand Down

0 comments on commit 1af3184

Please sign in to comment.