Skip to content
This repository has been archived by the owner on Mar 29, 2024. It is now read-only.

Commit

Permalink
Fix SPN reinit api permission
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Jun 22, 2022
1 parent acd1ee1 commit bf430dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions captain/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit bf430dd

Please sign in to comment.