Switched-off modules leave ITFlow completely: one map of each module's pages, windows, portal and guest pages (modulePaths) turned away by moduleRequestGuard with a refusal in the right shape, the API refusing resources and tag and category kinds of a module that is off, and every other page leaving out its tabs, New items, links, dashboard tiles, search groups, calendar layers, kinds, email previews, From addresses, settings sections and cron jobs; the nightly run skips the work of a module that is off, shared links don't open with IT documentation off, hidden settings keep their values, start pages fall back to the dashboard; 26.12.6 changelog and CONTRIBUTING rule

This commit is contained in:
johnnyq
2026-12-03 18:44:24 -05:00
parent 015b8a8217
commit 76c572c67e
72 changed files with 717 additions and 150 deletions

View File

@@ -53,6 +53,13 @@ if ($can_support) {
}
$open_tickets = ticketRows("tickets.ticket_location_id = $location_id AND " . TICKET_OPEN_SQL);
}
// The parts of ITFlow switched off (Admin > Settings > Modules) - none of their tabs
if (!moduleOn('itdoc')) {
$assets = $networks = [];
}
if (!moduleOn('ticketing')) {
$open_tickets = [];
}
$quick_tabs = array_filter([
'people' => ['label' => 'People', 'count' => count($people)],