diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-11 12:40:36 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2017-04-13 12:58:52 +0200 |
commit | 629b7c0fc38d9a2c33805bfcf4359e263e4ae68f (patch) | |
tree | 915d48dcfbc021fad3cbff2a5c53e7de006e630e /lib/private/Encryption | |
parent | 6c23a5fa3511e5212c83e8407fa18b12ec975f97 (diff) | |
download | nextcloud-server-629b7c0fc38d9a2c33805bfcf4359e263e4ae68f.tar.gz nextcloud-server-629b7c0fc38d9a2c33805bfcf4359e263e4ae68f.zip |
Adjust docs and make !$currentAccess simpler
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/Encryption')
-rw-r--r-- | lib/private/Encryption/File.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Encryption/File.php b/lib/private/Encryption/File.php index f6fd3382cb5..2bc0e014f0c 100644 --- a/lib/private/Encryption/File.php +++ b/lib/private/Encryption/File.php @@ -95,14 +95,14 @@ class File implements \OCP\Encryption\IFile { $this->cache[$parent] = $resultForParents; } $userIds = array_merge($userIds, $resultForParents['users']); - $public = $resultForParents['public'] || !empty($resultForParents['remote']); + $public = $resultForParents['public'] || $resultForParents['remote']; // Find out who, if anyone, is sharing the file if ($file !== null) { $resultForFile = $this->shareManager->getAccessList($file, false); $userIds = array_merge($userIds, $resultForFile['users']); - $public = $resultForFile['public'] || !empty($resultForFile['remote']) || $public; + $public = $resultForFile['public'] || $resultForFile['remote'] || $public; } // check if it is a group mount |