EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
Fix portal note
Yuriiee039bd22da9
diff --git a/application/Espo/Classes/AclPortal/Note/AccessChecker.php b/application/Espo/Classes/AclPortal/Note/AccessChecker.phpindex 8e8cb271c6..c7fb17bc4f 100644--- a/application/Espo/Classes/AclPortal/Note/AccessChecker.php+++ b/application/Espo/Classes/AclPortal/Note/AccessChecker.php@@ -100,6 +100,10 @@ class AccessChecker implements AccessEntityCREDChecker$parentId = $entity->getParentId();$parentType = $entity->getParentType();+ if ($entity->isInternal()) {+ return false;+ }+if ($parentId && $parentType) {$parent = $this->entityManager->getEntityById($parentType, $parentId);