summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-09-06 13:25:08 +0200
committerJoas Schilling <coding@schilljs.com>2019-11-12 17:37:00 +0100
commit60da25681eb7f7f4b611c0c899b3485a8c66ef65 (patch)
tree839e1ab7f958ac9ef67417ad7820d629e3ba1023 /apps
parent8986910a7d6a0bd7ee08bca68f1f5008612e38dc (diff)
downloadnextcloud-server-60da25681eb7f7f4b611c0c899b3485a8c66ef65.tar.gz
nextcloud-server-60da25681eb7f7f4b611c0c899b3485a8c66ef65.zip
Only restrict loading of group and user shares for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/MountProvider.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/MountProvider.php b/apps/files_sharing/lib/MountProvider.php
index 1f733969966..81a7e961860 100644
--- a/apps/files_sharing/lib/MountProvider.php
+++ b/apps/files_sharing/lib/MountProvider.php
@@ -96,7 +96,9 @@ class MountProvider implements IMountProvider {
/** @var \OCP\Share\IShare $parentShare */
$parentShare = $share[0];
- if ($parentShare->getStatus() !== IShare::STATUS_ACCEPTED) {
+ if (($parentShare->getShareType() === IShare::TYPE_GROUP ||
+ $parentShare->getShareType() === IShare::TYPE_USERGROUP ||
+ $parentShare->getShareType() === IShare::TYPE_USER) && $parentShare->getStatus() !== IShare::STATUS_ACCEPTED) {
continue;
}