diff options
author | Björn Schießle <schiessle@owncloud.com> | 2016-04-12 15:22:46 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2016-04-12 17:56:56 +0200 |
commit | 499d131a09dbef87a893f799c84c28abaa035c2e (patch) | |
tree | aa8434f7918fbbf523e3c909534a38cc85c28241 /apps/dav/lib/connector/sabre/node.php | |
parent | e9a9af3493caa7e839e18cda0c8ea2d8dd7bfd22 (diff) | |
download | nextcloud-server-499d131a09dbef87a893f799c84c28abaa035c2e.tar.gz nextcloud-server-499d131a09dbef87a893f799c84c28abaa035c2e.zip |
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.php | 8 |
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) { |