cli, objectSvc: Do not convert CID to native-schema resource name format #869

Merged
fyrchik merged 2 commits from aarifullin/frostfs-node:fix/dont_convert_cid_to_native_fmt into master 2023-12-14 11:01:22 +00:00
Showing only changes of commit ef0551c347 - Show all commits

View file

@ -26,7 +26,7 @@ func (c *apeCheckerImpl) CheckIfRequestPermitted(reqInfo v2.RequestInfo) error {
request := new(Request)
request.FromRequestInfo(reqInfo)
cnrTarget := getResource(reqInfo).Name()
cnrTarget := reqInfo.ContainerID().EncodeToString()
status, ruleFound, err := c.chainRouter.IsAllowed(apechain.Ingress, policyengine.NewRequestTargetWithContainer(cnrTarget), request)
if err != nil {