From e8c8acd3bde0cb670e7b941d80274f094a89f177 Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Thu, 24 Dec 2020 15:10:37 +0100 Subject: [PATCH] Commented out a folder handling condition Signed-off-by: Janos SUTO --- config.php.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.php.in b/config.php.in index f39a6f1c..c80b2adf 100644 --- a/config.php.in +++ b/config.php.in @@ -375,8 +375,10 @@ include("system/helper/detectmobilebrowser.php"); // make sure auditors are restricted in a saas environment if($config['ENABLE_SAAS'] == 1) { $config['RESTRICTED_AUDITOR'] = 1; } if($session->get("username") == 'auditor@local' || isset($_SERVER['argv'][2]) ) { $config['RESTRICTED_AUDITOR'] = 0; } + // disable folders for normal users with no folder restrictions set -if($config['ENABLE_FOLDER_RESTRICTIONS'] == 1 && $session->get("admin_user") == 0 && (!$session->get("folders") || count($session->get("folders")) <= 1)) { $config['ENABLE_FOLDER_RESTRICTIONS'] = 0; } +// This needs further polishing +//if($config['ENABLE_FOLDER_RESTRICTIONS'] == 1 && $session->get("admin_user") == 0 && (!$session->get("folders") || count($session->get("folders")) <= 1)) { $config['ENABLE_FOLDER_RESTRICTIONS'] = 0; }