diff --git a/ChangeLog b/ChangeLog index 92b8c7a624f..28c73b7b1cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ For users: - Added average amount in invoices statistics reports. - Can move a contract line to another contract of same third party. - Add an export definition to export interventions. +- Can set umask file permissions on Unix/Linux/BSD systems. For translators: - The errors language file contains only error or warning messages with diff --git a/htdocs/admin/security_other.php b/htdocs/admin/security_other.php index b4f5d9d77df..1ceaf10308c 100644 --- a/htdocs/admin/security_other.php +++ b/htdocs/admin/security_other.php @@ -69,6 +69,13 @@ if ($_GET["action"] == 'MAIN_SESSION_TIMEOUT') exit; } +if ($_GET["action"] == 'MAIN_UMASK') +{ + dolibarr_set_const($db, "MAIN_UMASK", $_POST["MAIN_UMASK"]); + Header("Location: security_other.php"); + exit; +} + if ($_GET["action"] == 'activate_avscan') { dolibarr_set_const($db, "MAIN_USE_AVSCAN", '1'); @@ -127,6 +134,20 @@ print ''; +print '