fix logo upload

This commit is contained in:
Yuri Kuznetsov
2021-10-05 20:31:24 +03:00
parent f641a3c9c6
commit 83ac300aa3

View File

@@ -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')
&&