mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Admin Page - Compatibility OTHire (#342)
-- Fix for Admin Page in OTHire
This commit is contained in:
parent
9c80585ef9
commit
bbd0455463
@ -404,6 +404,9 @@ function admin_only($user_data) {
|
||||
}
|
||||
|
||||
function is_admin($user_data) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user