Skip to content

Commit

Permalink
fix: Exclude non accepted shares when computing access list
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jan 27, 2025
1 parent c1b3f6a commit 1927cb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,8 @@ public function getAccessList($nodes, $currentAccess) {
->andWhere($qb->expr()->orX(
$qb->expr()->eq('item_type', $qb->createNamedParameter('file')),
$qb->expr()->eq('item_type', $qb->createNamedParameter('folder'))
));
))
->andWhere($qb->expr()->eq('accepted', $qb->createNamedParameter(1, IQueryBuilder::PARAM_INT)));
$cursor = $qb->executeQuery();

$users = [];
Expand Down

0 comments on commit 1927cb6

Please sign in to comment.