[#1407] tree: Set ContainerOwner in parameter for CheckAPE

Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
Airat Arifullin 2024-10-02 10:09:10 +03:00
parent 7f8a1dcf8e
commit 699f00e523

View file

@ -75,12 +75,13 @@ func (s *Service) checkAPE(ctx context.Context, bt *bearer.Token,
}
return s.apeChecker.CheckAPE(checkercore.CheckPrm{
Request: request,
Namespace: namespace,
Container: cid,
PublicKey: publicKey,
BearerToken: bt,
SoftAPECheck: false,
Request: request,
Namespace: namespace,
Container: cid,
ContainerOwner: container.Value.Owner(),
PublicKey: publicKey,
BearerToken: bt,
SoftAPECheck: false,
})
}