Exemplo n.º 1
0
 protected function _assertCanUploadAndManageAttachments($hash, $contentType, array $contentData)
 {
     if (!$hash) {
         throw $this->_controller->getNoPermissionResponseException();
     }
     $attachmentHandler = $this->_getAttachmentModel()->getAttachmentHandler($contentType);
     if (!$attachmentHandler || !$attachmentHandler->canUploadAndManageAttachments($contentData)) {
         throw $this->_controller->getNoPermissionResponseException();
     }
 }