36 $response->fillFromResponse($checkPermissionsResponse);
38 if ($response->isSuccess())
40 $elementRight = $checkPermissionsResponse->getElementRight();
43 ($elementId === 0 && !$elementRight?->canAdd())
44 || ($elementId !== 0 && !$elementRight?->canRead())
47 $response->addError(self::getAccessDeniedError());