lib/Db/CircleProviderRequest.php 1 location
|
@@ 57-70 (lines=14) @@
|
| 54 |
|
$cursor = $qb->execute(); |
| 55 |
|
|
| 56 |
|
$object_ids = []; |
| 57 |
|
while ($data = $cursor->fetch()) { |
| 58 |
|
|
| 59 |
|
if ($data['initiator_circle_level'] < Member::LEVEL_MEMBER |
| 60 |
|
&& ($data['initiator_group_level'] < Member::LEVEL_MEMBER |
| 61 |
|
|| !$this->configService->isLinkedGroupsAllowed()) |
| 62 |
|
) { |
| 63 |
|
continue; |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
self::editShareFromParentEntry($data); |
| 67 |
|
if (self::isAccessibleResult($data)) { |
| 68 |
|
$object_ids[] = $data['file_source']; |
| 69 |
|
} |
| 70 |
|
} |
| 71 |
|
$cursor->closeCursor(); |
| 72 |
|
|
| 73 |
|
return $object_ids; |
lib/ShareByCircleProvider.php 1 location
|
@@ 465-478 (lines=14) @@
|
| 462 |
|
$cursor = $qb->execute(); |
| 463 |
|
|
| 464 |
|
$shares = []; |
| 465 |
|
while ($data = $cursor->fetch()) { |
| 466 |
|
|
| 467 |
|
if ($data['initiator_circle_level'] < Member::LEVEL_MEMBER |
| 468 |
|
&& ($data['initiator_group_level'] < Member::LEVEL_MEMBER |
| 469 |
|
|| !$this->configService->isLinkedGroupsAllowed()) |
| 470 |
|
) { |
| 471 |
|
continue; |
| 472 |
|
} |
| 473 |
|
|
| 474 |
|
self::editShareFromParentEntry($data); |
| 475 |
|
if (self::isAccessibleResult($data)) { |
| 476 |
|
$shares[] = $this->createShareObject($data); |
| 477 |
|
} |
| 478 |
|
} |
| 479 |
|
$cursor->closeCursor(); |
| 480 |
|
|
| 481 |
|
return $shares; |