mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-07 22:31:59 +01:00
admin can power search
This commit is contained in:
parent
36b1ac5f18
commit
ff88ed747b
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user