mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 23:16:03 +00:00
fix logo upload
This commit is contained in:
@@ -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')
|
||||
&&
|
||||
|
||||
Reference in New Issue
Block a user