diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-12-08 12:59:30 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-12-09 13:20:24 +0100 |
commit | 53bb44c09ffb47e062790a2430cf99b98a80a8e7 (patch) | |
tree | 0ba926770163b59934f71e0af347d275d29660ac /apps/files_sharing/lib/MountProvider.php | |
parent | c770d337177b135fa6d225a28b5517dfb5483bd2 (diff) | |
download | nextcloud-server-53bb44c09ffb47e062790a2430cf99b98a80a8e7.tar.gz nextcloud-server-53bb44c09ffb47e062790a2430cf99b98a80a8e7.zip |
Include deck shares in sharing mounts
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/lib/MountProvider.php')
-rw-r--r-- | apps/files_sharing/lib/MountProvider.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php index 3e703a4a6bb..3ab3185b95e 100644 --- a/apps/files_sharing/lib/MountProvider.php +++ b/apps/files_sharing/lib/MountProvider.php @@ -78,6 +78,8 @@ class MountProvider implements IMountProvider { $shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_GROUP, null, -1)); $shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_CIRCLE, null, -1)); $shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_ROOM, null, -1)); + $shares = array_merge($shares, $this->shareManager->getSharedWith($user->getUID(), IShare::TYPE_DECK, null, -1)); + // filter out excluded shares and group shares that includes self $shares = array_filter($shares, function (\OCP\Share\IShare $share) use ($user) { |