From 4de01190a1c14aedde2bf418ccdefbd084b60500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Wed, 8 Jan 2020 13:34:53 +0100 Subject: [PATCH] api: Require admin perm for SyncMarkBad --- api/apistruct/struct.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apistruct/struct.go b/api/apistruct/struct.go index 1f7c97f95..09e686731 100644 --- a/api/apistruct/struct.go +++ b/api/apistruct/struct.go @@ -58,7 +58,7 @@ type FullNodeStruct struct { SyncState func(context.Context) (*api.SyncState, error) `perm:"read"` SyncSubmitBlock func(ctx context.Context, blk *types.BlockMsg) error `perm:"write"` SyncIncomingBlocks func(ctx context.Context) (<-chan *types.BlockHeader, error) `perm:"read"` - SyncMarkBad func(ctx context.Context, bcid cid.Cid) error `perm:"write"` + SyncMarkBad func(ctx context.Context, bcid cid.Cid) error `perm:"admin"` MpoolPending func(context.Context, *types.TipSet) ([]*types.SignedMessage, error) `perm:"read"` MpoolPush func(context.Context, *types.SignedMessage) error `perm:"write"`