Popravek meta admina
This commit is contained in:
parent
5417da02ce
commit
50ace9942d
@ -81,13 +81,14 @@ class Dostop {
|
|||||||
static function isMetaAdmin(){
|
static function isMetaAdmin(){
|
||||||
global $global_user_id;
|
global $global_user_id;
|
||||||
global $admin_type;
|
global $admin_type;
|
||||||
global $meta_admin_ids;
|
|
||||||
|
|
||||||
// Ce ni admin ni nikoli metaadmin
|
// Ce ni admin ni nikoli metaadmin
|
||||||
if($admin_type != '0'){
|
if($admin_type != '0'){
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$meta_admin_ids = AppSettings::getInstance()->getSetting('meta_admin_ids');
|
||||||
|
|
||||||
// Ce imamo nastavljene id-je za metaadmine v settings_optional
|
// Ce imamo nastavljene id-je za metaadmine v settings_optional
|
||||||
if(isset($meta_admin_ids) && !empty($meta_admin_ids)){
|
if(isset($meta_admin_ids) && !empty($meta_admin_ids)){
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user