Skip to content

Commit

Permalink
Experimental change - disable uid check
Browse files Browse the repository at this point in the history
Signed-off-by: Dariusz Olszewski <starypatyk@users.noreply.github.com>
  • Loading branch information
starypatyk committed Nov 3, 2022
1 parent 23d06ee commit d0c52e5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -684,13 +684,13 @@ 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))
)
);
// } 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 d0c52e5

Please sign in to comment.