@@ 1047-1051 (lines=5) @@ | ||
1044 | $listOfUnsharedItems = \array_merge($listOfUnsharedItems, $deletedShares, [$shareTmp]); |
|
1045 | $itemUnshared = true; |
|
1046 | break; |
|
1047 | } elseif ((int)$share['share_type'] === \OCP\Share::SHARE_TYPE_GROUP) { |
|
1048 | if (\OC::$server->getGroupManager()->inGroup($uid, $share['share_with'])) { |
|
1049 | $groupShare = $share; |
|
1050 | } |
|
1051 | } elseif ((int)$share['share_type'] === self::$shareTypeGroupUserUnique && |
|
1052 | $share['share_with'] === $uid) { |
|
1053 | $uniqueGroupShare = $share; |
|
1054 | } |
@@ 891-894 (lines=4) @@ | ||
888 | $recipientList = []; |
|
889 | if ($shareType === Share::SHARE_TYPE_USER) { |
|
890 | $recipientList[] = $this->userManager->get($recipient); |
|
891 | } elseif ($shareType === Share::SHARE_TYPE_GROUP) { |
|
892 | $group = \OC::$server->getGroupManager()->get($recipient); |
|
893 | $recipientList = $group->searchUsers(''); |
|
894 | } |
|
895 | // don't send a mail to the user who shared the file |
|
896 | $recipientList = \array_filter($recipientList, function ($user) { |
|
897 | /** @var IUser $user */ |