Skip to content

Commit

Permalink
fixup! Prevent column name conflict between tables
Browse files Browse the repository at this point in the history
  • Loading branch information
artonge committed Mar 31, 2022
1 parent 764aeb2 commit 0975680
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/private/Share20/DefaultShareProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,9 +679,7 @@ public function getSharesInFolder($userId, Folder $node, $reshares) {
$shares = [];
while ($data = $cursor->fetch()) {
// Prevent permissions for oc_share to be shadowed by the one from oc_filecache.
if (isset($data['f_permissions'])) {
$data['permissions'] = $data['s_permissions'];
}
$data['permissions'] = $data['s_permissions'];
$shares[$data['fileid']][] = $this->createShare($data);
}
$cursor->closeCursor();
Expand Down

0 comments on commit 0975680

Please sign in to comment.