diff --git a/application/Espo/Services/Attachment.php b/application/Espo/Services/Attachment.php index ebfa11e532..a26e9411e6 100644 --- a/application/Espo/Services/Attachment.php +++ b/application/Espo/Services/Attachment.php @@ -234,6 +234,10 @@ class Attachment extends Record throw new Error("Field type '{$fieldType}' is not allowed for {$role}."); } + if ($this->getUser()->isAdmin() && $relatedEntityType === 'Settings') { + return; + } + if ( !$this->getAcl()->checkScope($relatedEntityType, 'create') &&