summaryrefslogtreecommitdiffstats
path: root/lib/private/Files
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-05-30 11:59:49 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-07-06 11:33:08 +0200
commitda51ec38f4174532e83a4fde21f4c523e4f0bc7c (patch)
tree3939c7805a222e0e180a8999b47632a5e76674fb /lib/private/Files
parent9c5ba2f12cf8f3a7b3587fd8ef304aed86e703e1 (diff)
downloadnextcloud-server-da51ec38f4174532e83a4fde21f4c523e4f0bc7c.tar.gz
nextcloud-server-da51ec38f4174532e83a4fde21f4c523e4f0bc7c.zip
only collect detailed access list if it is really needed
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/private/Files')
-rw-r--r--lib/private/Files/Stream/Encryption.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/Files/Stream/Encryption.php b/lib/private/Files/Stream/Encryption.php
index d1f68696848..b68917ce76e 100644
--- a/lib/private/Files/Stream/Encryption.php
+++ b/lib/private/Files/Stream/Encryption.php
@@ -254,7 +254,10 @@ class Encryption extends Wrapper {
$sharePath = dirname($sharePath);
}
- $accessList = $this->file->getAccessList($sharePath);
+ $accessList = [];
+ if ($this->encryptionModule->needDetailedAccessList()) {
+ $accessList = $this->file->getAccessList($sharePath);
+ }
$this->newHeader = $this->encryptionModule->begin($this->fullPath, $this->uid, $mode, $this->header, $accessList);
if (