mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-12 23:17:02 +02:00
admin can power search
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user