File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -1665,8 +1665,14 @@ public function userDeleted($uid) {
1665
1665
* @inheritdoc
1666
1666
*/
1667
1667
public function groupDeleted ($ gid ) {
1668
- $ provider = $ this ->factory ->getProviderForType (IShare::TYPE_GROUP );
1669
- $ provider ->groupDeleted ($ gid );
1668
+ foreach ([IShare::TYPE_GROUP , IShare::TYPE_REMOTE_GROUP ] as $ type ) {
1669
+ try {
1670
+ $ provider = $ this ->factory ->getProviderForType ($ type );
1671
+ } catch (ProviderException $ e ) {
1672
+ continue ;
1673
+ }
1674
+ $ provider ->groupDeleted ($ gid );
1675
+ }
1670
1676
1671
1677
$ excludedGroups = $ this ->config ->getAppValue ('core ' , 'shareapi_exclude_groups_list ' , '' );
1672
1678
if ($ excludedGroups === '' ) {
@@ -1686,8 +1692,14 @@ public function groupDeleted($gid) {
1686
1692
* @inheritdoc
1687
1693
*/
1688
1694
public function userDeletedFromGroup ($ uid , $ gid ) {
1689
- $ provider = $ this ->factory ->getProviderForType (IShare::TYPE_GROUP );
1690
- $ provider ->userDeletedFromGroup ($ uid , $ gid );
1695
+ foreach ([IShare::TYPE_GROUP , IShare::TYPE_REMOTE_GROUP ] as $ type ) {
1696
+ try {
1697
+ $ provider = $ this ->factory ->getProviderForType ($ type );
1698
+ } catch (ProviderException $ e ) {
1699
+ continue ;
1700
+ }
1701
+ $ provider ->userDeletedFromGroup ($ uid , $ gid );
1702
+ }
1691
1703
}
1692
1704
1693
1705
/**
You can’t perform that action at this time.
0 commit comments