diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-06 13:25:08 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-11-12 17:37:00 +0100 |
commit | 60da25681eb7f7f4b611c0c899b3485a8c66ef65 (patch) | |
tree | 839e1ab7f958ac9ef67417ad7820d629e3ba1023 | |
parent | 8986910a7d6a0bd7ee08bca68f1f5008612e38dc (diff) | |
download | nextcloud-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>
-rw-r--r-- | apps/files_sharing/lib/MountProvider.php | 4 | ||||
-rw-r--r-- | lib/public/Share/IShare.php | 6 |
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; |