diff --git a/module/PublicationBundle/Controller/Admin/Edition/PdfController.php b/module/PublicationBundle/Controller/Admin/Edition/PdfController.php index ccda1c2f1a..17aa689853 100644 --- a/module/PublicationBundle/Controller/Admin/Edition/PdfController.php +++ b/module/PublicationBundle/Controller/Admin/Edition/PdfController.php @@ -104,6 +104,7 @@ public function uploadAction() ); rename($formData['file']['tmp_name'], $filePath . $fileName); + chmod($filePath.$fileName, 0744); // set permissions $this->getEntityManager()->persist($edition); $this->getEntityManager()->flush();