Skip to content

Commit

Permalink
allow Pull for all
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan6sha committed Dec 25, 2023
1 parent 0a8eb5b commit fe1cb44
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions exchange/fx_exchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -729,10 +729,7 @@ func (e *FxExchange) authorized(pid peer.ID, action string, cid string) bool {
return pid == e.authorizer
case actionPull:
//TODO: Check if requestor is part of the same pool or the owner of the cid
e.authorizedPeersLock.RLock()
_, ok := e.authorizedPeers[pid]
e.authorizedPeersLock.RUnlock()
return ok
return true
default:
return false
}
Expand Down

0 comments on commit fe1cb44

Please sign in to comment.