Only restrict loading of group and user shares for now

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2019-09-06 13:25:08 +02:00
parent 8986910a7d
commit 60da25681e
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 9 additions and 1 deletions

View File

@ -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;
}

View File

@ -49,6 +49,12 @@ interface IShare {
*/
public const TYPE_GROUP = 1;
/**
* @internal
* @since 18.0.0
*/
public const TYPE_USERGROUP = 2;
/**
* @since 17.0.0
*/