add test workspaces for lbc, sandbox

This commit is contained in:
Fernando Ontiveros
2025-09-09 11:00:34 -04:00
parent e76fedf1cf
commit f7c0689ddf

View File

@@ -35,15 +35,34 @@ if ($RBAC->userCanAccess('PM_SETUP') == 1 || $RBAC->userCanAccess('PM_USERS') ==
} }
if ($RBAC->userCanAccess('PM_SETUP') == 1 && SYS_SYS == 'lbc') { // Test workspaces for LBC. Check if the user has access to 'PM_SETUP'
$G_TMP_MENU->AddIdRawOption( if ($RBAC->userCanAccess('PM_SETUP') == 1) {
'LBC_INBOX', // Define menu options based on the system environment
'/lbc/inbox', $menuOptions = [
"LBC", 'lbc' => [
'', 'id' => 'LBC_INBOX',
'', 'url' => '/lbc/inbox',
'absolute' 'label' => 'LBC',
); ],
'sandbox' => [
'id' => 'LBC_INBOX',
'url' => '/sandbox/inbox',
'label' => 'SANDBOX',
],
];
// Check if current system is in the defined menu options
if (isset($menuOptions[SYS_SYS])) {
$option = $menuOptions[SYS_SYS];
$G_TMP_MENU->AddIdRawOption(
$option['id'],
$option['url'],
$option['label'],
'',
'',
'absolute'
);
}
} }
// PLUGINS MENUS // PLUGINS MENUS