- Groups are now globally configurable under Admin > Plans & Platform > Group Availability.

When disabled:

Group navigation and channel selector are hidden.
Group API operations are blocked.
Active sessions update automatically.
Existing groups and messages remain preserved.
Static and browser tests passed with no console errors.
This commit is contained in:
Ty Clifford
2026-06-08 16:21:33 -04:00
parent d0e4a870be
commit 2881a3b338
10 changed files with 104 additions and 16 deletions
+4
View File
@@ -69,6 +69,10 @@ function getConfigVal(string $path, mixed $default = null): mixed {
return $value;
}
function groupsEnabled(): bool {
return (bool)getConfigVal('groups.enabled', true);
}
function setConfigValues(array $changes): void {
$config = getConfig();
foreach ($changes as $path => $value) {