summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/files_sharing/lib/MountProvider.php4
-rw-r--r--lib/public/Share/IShare.php6
2 files changed, 9 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;
}
diff --git a/lib/public/Share/IShare.php b/lib/public/Share/IShare.php
index a4d120da5f4..1064f59e6d5 100644
--- a/lib/public/Share/IShare.php
+++ b/lib/public/Share/IShare.php
@@ -50,6 +50,12 @@ interface IShare {
public const TYPE_GROUP = 1;
/**
+ * @internal
+ * @since 18.0.0
+ */
+ public const TYPE_USERGROUP = 2;
+
+ /**
* @since 17.0.0
*/
public const TYPE_LINK = 3;