- 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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user