mirror of
https://github.com/itflow-org/itflow
synced 2026-11-11 07:01:16 +00:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user