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:
parent
29aac75d80
commit
689732188b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user