add mode maintenance VC pandora_enterprise#4822
This commit is contained in:
parent
ace6bcc854
commit
f2c5e496de
|
@ -3815,11 +3815,12 @@ function visual_map_get_user_layouts(
|
|||
$retval = [];
|
||||
foreach ($layouts as $layout) {
|
||||
if ($only_names) {
|
||||
$retval[$layout['id']]['name'] = $layout['name'];
|
||||
$retval[$layout['id']] = $layout['name'];
|
||||
} else {
|
||||
$retval[$layout['id']] = $layout;
|
||||
}
|
||||
|
||||
if ($only_names === false) {
|
||||
// Aad_perms.
|
||||
if (isset($groups[$layout['id_group']]['vconsole_view'])) {
|
||||
$retval[$layout['id']]['vr'] = $groups[$layout['id_group']]['vconsole_view'];
|
||||
|
@ -3833,6 +3834,7 @@ function visual_map_get_user_layouts(
|
|||
$retval[$layout['id']]['vm'] = $groups[$layout['id_group']]['vconsole_management'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return $retval;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue