summaryrefslogtreecommitdiffstats
path: root/apps/encryption/lib
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 /apps/encryption/lib
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 'apps/encryption/lib')
-rw-r--r--apps/encryption/lib/Crypto/Encryption.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/encryption/lib/Crypto/Encryption.php b/apps/encryption/lib/Crypto/Encryption.php
index 7f7665a24fc..6869177ac31 100644
--- a/apps/encryption/lib/Crypto/Encryption.php
+++ b/apps/encryption/lib/Crypto/Encryption.php
@@ -569,4 +569,13 @@ class Encryption implements IEncryptionModule {
public function isReadyForUser($user) {
return $this->keyManager->userHasKeys($user);
}
+
+ /**
+ * We only need a detailed access list if the master key is not enabled
+ *
+ * @return bool
+ */
+ public function needDetailedAccessList() {
+ return !$this->util->isMasterKeyEnabled();
+ }
}