Skip to content

Commit

Permalink
fix logo upload
Browse files Browse the repository at this point in the history
  • Loading branch information
yurikuzn committed Oct 5, 2021
1 parent f641a3c commit 83ac300
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/Espo/Services/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ protected function checkAttachmentField($relatedEntityType, $field, $role = 'Att
throw new Error("Field type '{$fieldType}' is not allowed for {$role}.");
}

if ($this->getUser()->isAdmin() && $relatedEntityType === 'Settings') {
return;
}

if (
!$this->getAcl()->checkScope($relatedEntityType, 'create')
&&
Expand Down

0 comments on commit 83ac300

Please sign in to comment.