summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/api.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-05 10:05:05 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-05 10:05:05 +0200
commitff3ded6cb2f8542c3b2a083f4dabc83ccfa1888e (patch)
treebc041a07259ea4ba303503ac2ede3a4435f672b5 /apps/files_sharing/lib/api.php
parentcb61d8a2265b3d623b676f0cd35f93921961f044 (diff)
parentda3974bcb210a6580c974e1b2efebcae26ccf708 (diff)
downloadnextcloud-server-ff3ded6cb2f8542c3b2a083f4dabc83ccfa1888e.tar.gz
nextcloud-server-ff3ded6cb2f8542c3b2a083f4dabc83ccfa1888e.zip
Merge pull request #8852 from owncloud/kill-permissions-master
Kill permissions table
Diffstat (limited to 'apps/files_sharing/lib/api.php')
-rw-r--r--apps/files_sharing/lib/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/api.php b/apps/files_sharing/lib/api.php
index c4f761f9153..956a8774150 100644
--- a/apps/files_sharing/lib/api.php
+++ b/apps/files_sharing/lib/api.php
@@ -156,7 +156,7 @@ class Api {
return $shares;
}
- $select = '`*PREFIX*share`.`id`, `item_type`, `*PREFIX*share`.`parent`, `share_type`, `share_with`, `file_source`, `path` , `permissions`, `stime`, `expiration`, `token`, `storage`, `mail_send`, `mail_send`';
+ $select = '`*PREFIX*share`.`id`, `item_type`, `*PREFIX*share`.`parent`, `share_type`, `share_with`, `file_source`, `path` , `*PREFIX*share`.`permissions`, `stime`, `expiration`, `token`, `storage`, `mail_send`, `mail_send`';
$getReshares = \OC_DB::prepare('SELECT ' . $select . ' FROM `*PREFIX*share` INNER JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `*PREFIX*share`.`file_source` = ? AND `*PREFIX*share`.`item_type` IN (\'file\', \'folder\') AND `uid_owner` != ?');
$reshares = $getReshares->execute(array($itemSource, \OCP\User::getUser()))->fetchAll();