diff --git a/lam/lib/pdfstruct.inc b/lam/lib/pdfstruct.inc index 63864973..f1e8fde6 100644 --- a/lam/lib/pdfstruct.inc +++ b/lam/lib/pdfstruct.inc @@ -347,7 +347,7 @@ function installPDFTemplates() { } $basePath = dirname(__FILE__) . '/../config/pdf/' . $_SESSION['config']->getName(); if (!file_exists($basePath)) { - mkdir($basePath); + mkdir($basePath, 0700, true); } $typeManager = new \LAM\TYPES\TypeManager(); foreach ($typeManager->getConfiguredTypes() as $type) { diff --git a/lam/lib/profiles.inc b/lam/lib/profiles.inc index 82aaa543..45f4d521 100644 --- a/lam/lib/profiles.inc +++ b/lam/lib/profiles.inc @@ -253,7 +253,7 @@ function installProfileTemplates() { } $basePath = dirname(__FILE__) . '/../config/profiles/' . $_SESSION['config']->getName(); if (!file_exists($basePath)) { - mkdir($basePath); + mkdir($basePath, 0700, true); } $typeManager = new \LAM\TYPES\TypeManager(); foreach ($typeManager->getConfiguredTypes() as $type) {