From 389fa41da4cde64254613435ccda11c190fc415f Mon Sep 17 00:00:00 2001 From: Viacheslav Gonkivskyi Date: Thu, 31 Aug 2023 11:07:56 +0300 Subject: [PATCH] change permission for peers --- nodebuilder/p2p/p2p.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodebuilder/p2p/p2p.go b/nodebuilder/p2p/p2p.go index 6a1d256250..c0793b55f0 100644 --- a/nodebuilder/p2p/p2p.go +++ b/nodebuilder/p2p/p2p.go @@ -195,7 +195,7 @@ func (m *module) PubSubPeers(_ context.Context, topic string) ([]peer.ID, error) type API struct { Internal struct { Info func(context.Context) (peer.AddrInfo, error) `perm:"public"` - Peers func(context.Context) ([]peer.ID, error) `perm:"read"` + Peers func(context.Context) ([]peer.ID, error) `perm:"admin"` PeerInfo func(ctx context.Context, id peer.ID) (peer.AddrInfo, error) `perm:"admin"` Connect func(ctx context.Context, pi peer.AddrInfo) error `perm:"admin"` ClosePeer func(ctx context.Context, id peer.ID) error `perm:"admin"`