diff --git a/api/apistruct/struct.go b/api/apistruct/struct.go index bc7c5d9ad71..b631ebb08ff 100644 --- a/api/apistruct/struct.go +++ b/api/apistruct/struct.go @@ -388,8 +388,8 @@ type WorkerStruct struct { ReadPiece func(context.Context, io.Writer, storage.SectorRef, storiface.UnpaddedByteIndex, abi.UnpaddedPieceSize) (storiface.CallID, error) `perm:"admin"` Fetch func(context.Context, storage.SectorRef, storiface.SectorFileType, storiface.PathType, storiface.AcquireMode) (storiface.CallID, error) `perm:"admin"` - DisableTask func(ctx context.Context, tt sealtasks.TaskType) error - EnableTask func(ctx context.Context, tt sealtasks.TaskType) error + DisableTask func(ctx context.Context, tt sealtasks.TaskType) error `perm:"admin"` + EnableTask func(ctx context.Context, tt sealtasks.TaskType) error `perm:"admin"` Remove func(ctx context.Context, sector abi.SectorID) error `perm:"admin"` StorageAddLocal func(ctx context.Context, path string) error `perm:"admin"` diff --git a/documentation/en/api-methods-worker.md b/documentation/en/api-methods-worker.md index ed69f967f20..7b06e81e3a8 100644 --- a/documentation/en/api-methods-worker.md +++ b/documentation/en/api-methods-worker.md @@ -191,7 +191,7 @@ Response: ### DisableTask There are not yet any comments for this method. -Perms: +Perms: admin Inputs: ```json @@ -208,7 +208,7 @@ Response: `{}` ### EnableTask There are not yet any comments for this method. -Perms: +Perms: admin Inputs: ```json