satellite/metainfo: remove duplicate permission check in BeginCopyObject

BeginCopyObject checks twice for write permission in the destination
bucket. One check should be enough.

Change-Id: I3d5935d34f69cd48eaaf00d0117683edfdcefc05
This commit is contained in:
Kaloyan Raev 2022-10-24 16:57:32 +03:00 committed by Storj Robot
parent 29aac75d80
commit 689732188b

View File

@ -1764,14 +1764,6 @@ func (endpoint *Endpoint) BeginCopyObject(ctx context.Context, req *pb.ObjectBeg
Time: now,
},
},
verifyPermission{
action: macaroon.Action{
Op: macaroon.ActionWrite,
Bucket: req.NewBucket,
EncryptedPath: req.NewEncryptedObjectKey,
Time: now,
},
},
)
if err != nil {
return nil, err