From c78e3c4a7fa1d2f474ab58551e67a50e093f6ed8 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 29 Jan 2015 13:09:44 +0100 Subject: make sure that we always create a public share key for remote shares --- apps/files_encryption/lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_encryption/lib/util.php') 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; } -- cgit v1.2.3