Make managed mode off by default and turned on per side in config.php - $config_enable_managed_instances = true; adds Admin > Managed Instances, the api/managed endpoints and the Managed Instances cron job, and $config_enable_managed_by = true; (or $config_manager_required = true;) adds Admin > Managed By, the Manager Check-in cron job and support sign-in; with a side off its menu entry, pages, modal, post handler and cron job are gone, the manager endpoints answer 503 so instances keep their connection and retry, a connected instance stops checking in and its locks, read-only and suspended lift while its connection is kept, any open support session is ended, and the support user still takes no seat; new managerEnabled(), managedEnabled() and managedConnected(), the cron registry and health check leave out the jobs of a side that is off, changelog updated

This commit is contained in:
johnnyq
2026-11-05 20:17:42 -05:00
parent b5ceeb4eaf
commit 87cdf79b28
14 changed files with 167 additions and 27 deletions

View File

@@ -13,7 +13,8 @@
require_once "includes/inc_all_admin.php";
if (!settingsColumnExists($mysqli, 'config_manager_keys')) {
// Off unless config.php turns it on - the list says how
if (!managerEnabled() || !settingsColumnExists($mysqli, 'config_manager_keys')) {
redirect('managed_instances.php');
}