diff --git a/webui/config.php b/webui/config.php index 7174baf..8c8c26b 100644 --- a/webui/config.php +++ b/webui/config.php @@ -235,6 +235,8 @@ $config['CGI_INPUT_FIELD_WIDTH'] = 50; $config['CGI_INPUT_FIELD_HEIGHT'] = 7; +$config['ADMIN_CAN_POWER_SEARCH'] = 0; + $config['MEMCACHED_PREFIX'] = '_piler:'; $config['MEMCACHED_TTL'] = 900; diff --git a/webui/system/misc.php b/webui/system/misc.php index bfd05fb..e294d81 100644 --- a/webui/system/misc.php +++ b/webui/system/misc.php @@ -56,6 +56,9 @@ function isAuditorUser() { $session = Registry::get('session'); + if(ADMIN_CAN_POWER_SEARCH == 1 && Registry::get('admin_user') == 1) { return 1; } + + if($session->get("admin_user") == 2){ return 1; } return 0;