forked from TrueCloudLab/frostfs-node
[#570] *: Use new Equal method of owner.ID type
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
49a42b1d3e
commit
70a7354e9d
4 changed files with 7 additions and 12 deletions
|
@ -65,7 +65,7 @@ func (c SenderClassifier) Classify(
|
|||
// todo: get owner from neofs.id if present
|
||||
|
||||
// if request owner is the same as container owner, return RoleUser
|
||||
if bytes.Equal(cnr.OwnerID().ToV2().GetValue(), ownerID.ToV2().GetValue()) {
|
||||
if ownerID.Equal(cnr.OwnerID()) {
|
||||
return acl.RoleUser, false, ownerKeyInBytes, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue