diff --git a/captain/api.go b/captain/api.go index ecf7f5b..b6b2751 100644 --- a/captain/api.go +++ b/captain/api.go @@ -12,8 +12,8 @@ import ( func registerAPIEndpoints() error { if err := api.RegisterEndpoint(api.Endpoint{ - Path: `spn/reinit`, - Read: api.PermitUser, + Path: `spn/reinit`, + Write: api.PermitAdmin, // BelongsTo: module, // Do not attach to module, as this must run outside of the module. ActionFunc: handleReInit, Name: "Re-initialize SPN",