diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-29 13:09:44 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-01-29 14:23:14 +0100 |
commit | c78e3c4a7fa1d2f474ab58551e67a50e093f6ed8 (patch) | |
tree | 3229c2bda95ffb3091dbf4a5fd85c82f429dd5c4 /apps/files_encryption/lib/util.php | |
parent | 55142186deb9e163ce3519453ebfe93f6a446666 (diff) | |
download | nextcloud-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.php | 2 |
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; } |