We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73f5848 + 16da29c commit 1bba7deCopy full SHA for 1bba7de
1 file changed
lib/private/Share20/Manager.php
@@ -1511,6 +1511,19 @@ public function userDeleted($uid) {
1511
public function groupDeleted($gid) {
1512
$provider = $this->factory->getProviderForType(\OCP\Share::SHARE_TYPE_GROUP);
1513
$provider->groupDeleted($gid);
1514
+
1515
+ $excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
1516
+ if ($excludedGroups === '') {
1517
+ return;
1518
+ }
1519
1520
+ $excludedGroups = json_decode($excludedGroups, true);
1521
+ if (json_last_error() !== JSON_ERROR_NONE) {
1522
1523
1524
1525
+ $excludedGroups = array_diff($excludedGroups, [$gid]);
1526
+ $this->config->setAppValue('core', 'shareapi_exclude_groups_list', json_encode($excludedGroups));
1527
}
1528
1529
/**
0 commit comments