diff --git a/engine/function/general.php b/engine/function/general.php index 1cfaf70..031d0d0 100644 --- a/engine/function/general.php +++ b/engine/function/general.php @@ -404,7 +404,10 @@ function admin_only($user_data) { } function is_admin($user_data) { - return in_array($user_data['name'], config('page_admin_access')) ? true : false; + if (config('ServerEngine') === 'OTHIRE') + return in_array($user_data['id'], config('page_admin_access')) ? true : false; + else + return in_array($user_data['name'], config('page_admin_access')) ? true : false; } function array_sanitize(&$item) { @@ -557,4 +560,4 @@ function verifyGoogleReCaptcha($postResponse = null) { return isset($json->success) && $json->success; } -?> \ No newline at end of file +?>