diff --git a/application/Espo/Services/Note.php b/application/Espo/Services/Note.php index 0d904bc1e4..35b0e06d32 100644 --- a/application/Espo/Services/Note.php +++ b/application/Espo/Services/Note.php @@ -119,6 +119,10 @@ class Note extends Record throw new ForbiddenSilent("Only 'Post' type allowed."); } + if ($this->user->isPortal()) { + $entity->set('isInternal', false); + } + if ($entity->isPost()) { $this->handlePostText($entity); }