Skip to content

Commit

Permalink
Revert "Revert: Experimental change - disable uid check"
Browse files Browse the repository at this point in the history
This reverts commit 1367fc1.

Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
  • Loading branch information
starypatyk authored and icewind1991 committed Feb 9, 2024
1 parent 6523dfe commit ba32ac1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -673,13 +673,6 @@ public function getSharesInFolder($userId, Folder $node, $reshares, $shallow = t
*/
if ($reshares === false) {
$qb->andWhere($qb->expr()->eq('uid_initiator', $qb->createNamedParameter($userId)));
} else {
$qb->andWhere(
$qb->expr()->orX(
$qb->expr()->eq('uid_owner', $qb->createNamedParameter($userId)),
$qb->expr()->eq('uid_initiator', $qb->createNamedParameter($userId))
)
);
}

// todo? maybe get these from the oc_mounts table
Expand Down

0 comments on commit ba32ac1

Please sign in to comment.