summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/connector/sabre/node.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2016-04-13 10:20:25 +0200
committerJoas Schilling <nickvergessen@gmx.de>2016-04-13 10:20:25 +0200
commit739542816a052e141a02977b88b54ba0613cc211 (patch)
treeec222f92b0e075305414dcff8c1337fc53361c60 /apps/dav/lib/connector/sabre/node.php
parenta2da7614a0516d1e1c07ef60b308645d7a8ad480 (diff)
parent499d131a09dbef87a893f799c84c28abaa035c2e (diff)
downloadnextcloud-server-739542816a052e141a02977b88b54ba0613cc211.tar.gz
nextcloud-server-739542816a052e141a02977b88b54ba0613cc211.zip
Merge pull request #23945 from owncloud/fix_oc_share_permissions
always return the complete permissions the file was shared with
Diffstat (limited to 'apps/dav/lib/connector/sabre/node.php')
-rw-r--r--apps/dav/lib/connector/sabre/node.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/dav/lib/connector/sabre/node.php b/apps/dav/lib/connector/sabre/node.php
index 9867fe66cd3..eaba6713992 100644
--- a/apps/dav/lib/connector/sabre/node.php
+++ b/apps/dav/lib/connector/sabre/node.php
@@ -246,14 +246,6 @@ abstract class Node implements \Sabre\DAV\INode {
}
/*
- * Without sharing permissions there are also no other permissions
- */
- if (!($permissions & \OCP\Constants::PERMISSION_SHARE) ||
- !($permissions & \OCP\Constants::PERMISSION_READ)) {
- return 0;
- }
-
- /*
* Files can't have create or delete permissions
*/
if ($this->info->getType() === \OCP\Files\FileInfo::TYPE_FILE) {