mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
fix(Share20\Manager): Propagate user and group deletion to remote share providers
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
7b5c9feca1
commit
194f5eae1e
1 changed files with 16 additions and 4 deletions
|
|
@ -1536,8 +1536,14 @@ class Manager implements IManager {
|
|||
* @inheritdoc
|
||||
*/
|
||||
public function groupDeleted($gid) {
|
||||
$provider = $this->factory->getProviderForType(IShare::TYPE_GROUP);
|
||||
$provider->groupDeleted($gid);
|
||||
foreach ([IShare::TYPE_GROUP, IShare::TYPE_REMOTE_GROUP] as $type) {
|
||||
try {
|
||||
$provider = $this->factory->getProviderForType($type);
|
||||
} catch (ProviderException $e) {
|
||||
continue;
|
||||
}
|
||||
$provider->groupDeleted($gid);
|
||||
}
|
||||
|
||||
$excludedGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', '');
|
||||
if ($excludedGroups === '') {
|
||||
|
|
@ -1557,8 +1563,14 @@ class Manager implements IManager {
|
|||
* @inheritdoc
|
||||
*/
|
||||
public function userDeletedFromGroup($uid, $gid) {
|
||||
$provider = $this->factory->getProviderForType(IShare::TYPE_GROUP);
|
||||
$provider->userDeletedFromGroup($uid, $gid);
|
||||
foreach ([IShare::TYPE_GROUP, IShare::TYPE_REMOTE_GROUP] as $type) {
|
||||
try {
|
||||
$provider = $this->factory->getProviderForType($type);
|
||||
} catch (ProviderException $e) {
|
||||
continue;
|
||||
}
|
||||
$provider->userDeletedFromGroup($uid, $gid);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue