|
@@ 216-223 (lines=8) @@
|
| 213 |
|
// If sharing is restricted to group members only, |
| 214 |
|
// return only members that have groups in common |
| 215 |
|
$restrictGroups = false; |
| 216 |
|
if ($this->shareManager->shareWithGroupMembersOnly()) { |
| 217 |
|
$user = $this->userSession->getUser(); |
| 218 |
|
if (!$user) { |
| 219 |
|
return []; |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
$restrictGroups = $this->groupManager->getUserGroupIds($user); |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
foreach ($searchProperties as $prop => $value) { |
| 226 |
|
switch ($prop) { |
|
@@ 300-307 (lines=8) @@
|
| 297 |
|
// If sharing is restricted to group members only, |
| 298 |
|
// return only members that have groups in common |
| 299 |
|
$restrictGroups = false; |
| 300 |
|
if ($this->shareManager->shareWithGroupMembersOnly()) { |
| 301 |
|
$user = $this->userSession->getUser(); |
| 302 |
|
if (!$user) { |
| 303 |
|
return null; |
| 304 |
|
} |
| 305 |
|
|
| 306 |
|
$restrictGroups = $this->groupManager->getUserGroupIds($user); |
| 307 |
|
} |
| 308 |
|
|
| 309 |
|
if (strpos($uri, 'mailto:') === 0) { |
| 310 |
|
if ($principalPrefix === 'principals/users') { |