aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/util.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-01-29 13:09:44 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-01-29 14:23:14 +0100
commitc78e3c4a7fa1d2f474ab58551e67a50e093f6ed8 (patch)
tree3229c2bda95ffb3091dbf4a5fd85c82f429dd5c4 /apps/files_encryption/lib/util.php
parent55142186deb9e163ce3519453ebfe93f6a446666 (diff)
downloadnextcloud-server-c78e3c4a7fa1d2f474ab58551e67a50e093f6ed8.tar.gz
nextcloud-server-c78e3c4a7fa1d2f474ab58551e67a50e093f6ed8.zip
make sure that we always create a public share key for remote shares
Diffstat (limited to 'apps/files_encryption/lib/util.php')
-rw-r--r--apps/files_encryption/lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index b300999ff24..14d0a0bc4b9 100644
--- a/apps/files_encryption/lib/util.php
+++ b/apps/files_encryption/lib/util.php
@@ -1109,7 +1109,7 @@ class Util {
// Find out who, if anyone, is sharing the file
$result = \OCP\Share::getUsersSharingFile($ownerPath, $owner);
$userIds = \array_merge($userIds, $result['users']);
- if ($result['public']) {
+ if ($result['public'] || $result['remote']) {
$userIds[] = $this->publicShareKeyId;
}