diff --git a/application/Espo/Core/Utils/File/Permission.php b/application/Espo/Core/Utils/File/Permission.php index 679c9e0e06..e6eddf68a4 100644 --- a/application/Espo/Core/Utils/File/Permission.php +++ b/application/Espo/Core/Utils/File/Permission.php @@ -390,7 +390,7 @@ class Permission protected function chmodReal($filename, $mode) { try { - $result = chmod($filename, $mode); + $result = @chmod($filename, $mode); } catch (\Exception $e) { $result = false; } @@ -400,7 +400,7 @@ class Permission $this->chgrp($filename, $this->getDefaultGroup(true)); try { - $result = chmod($filename, $mode); + $result = @chmod($filename, $mode); } catch (\Exception $e) { throw new Error($e->getMessage()); } @@ -412,7 +412,7 @@ class Permission protected function chownReal($path, $user) { try { - $result = chown($path, $user); + $result = @chown($path, $user); } catch (\Exception $e) { throw new Error($e->getMessage()); } @@ -423,7 +423,7 @@ class Permission protected function chgrpReal($path, $group) { try { - $result = chgrp($path, $group); + $result = @chgrp($path, $group); } catch (\Exception $e) { throw new Error($e->getMessage()); }