Only restrict loading of group and user shares for now
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
8986910a7d
commit
60da25681e
|
@ -96,7 +96,9 @@ class MountProvider implements IMountProvider {
|
||||||
/** @var \OCP\Share\IShare $parentShare */
|
/** @var \OCP\Share\IShare $parentShare */
|
||||||
$parentShare = $share[0];
|
$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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,6 +49,12 @@ interface IShare {
|
||||||
*/
|
*/
|
||||||
public const TYPE_GROUP = 1;
|
public const TYPE_GROUP = 1;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @internal
|
||||||
|
* @since 18.0.0
|
||||||
|
*/
|
||||||
|
public const TYPE_USERGROUP = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @since 17.0.0
|
* @since 17.0.0
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue