mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 20:01:59 +01:00
Commented out a folder handling condition
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
5178c3e18b
commit
e8c8acd3bd
@ -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; }
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user