Meta admini so po novem definirani v settings_optional.php
This commit is contained in:
parent
afe41c114b
commit
bd4800851f
@ -76,24 +76,27 @@ class Dostop {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Kao meta admin, ki vidi vse
|
* Meta admin, ki vidi vse ankete
|
||||||
*/
|
*/
|
||||||
static function isMetaAdmin()
|
static function isMetaAdmin(){
|
||||||
{
|
|
||||||
global $global_user_id;
|
global $global_user_id;
|
||||||
global $admin_type;
|
global $admin_type;
|
||||||
global $mysql_database_name;
|
global $meta_admin_ids;
|
||||||
|
|
||||||
// Samo na www in virtualkah
|
// Ce ni admin ni nikoli metaadmin
|
||||||
if(($mysql_database_name == 'www1kasi' || $mysql_database_name == 'real1kasi') && $admin_type == '0'){
|
if($admin_type != '0'){
|
||||||
// vvasja@gmail.com - id: 100, peter.h1203@gmail.com - id: 12611, 1ka.techsupport - id: 49089 (virtualke), 72253
|
return FALSE;
|
||||||
if (in_array($global_user_id, [100, 12611, 49089, 72253])) {
|
}
|
||||||
|
|
||||||
|
// Ce imamo nastavljene id-je za metaadmine v settings_optional
|
||||||
|
if(isset($meta_admin_ids) && !empty($meta_admin_ids)){
|
||||||
|
|
||||||
|
if (in_array($global_user_id, $meta_admin_ids)) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gorenje ima svoje metaadmine
|
// Gorenje ima svoje metaadmine
|
||||||
if ($admin_type == '0' && Common::checkModule('gorenje')){
|
elseif(Common::checkModule('gorenje')){
|
||||||
global $meta_admin_emails;
|
global $meta_admin_emails;
|
||||||
|
|
||||||
$sql = sisplet_query("SELECT email FROM users WHERE id = '$global_user_id'");
|
$sql = sisplet_query("SELECT email FROM users WHERE id = '$global_user_id'");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user