admin can power search

This commit is contained in:
SJ 2015-02-11 11:35:36 +01:00
parent 36b1ac5f18
commit ff88ed747b
2 changed files with 5 additions and 0 deletions

View File

@ -235,6 +235,8 @@ $config['MIN_PREFIX_LEN'] = 5;
$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;

View File

@ -56,6 +56,9 @@ function isAdminUser() {
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;