Merge pull request #25028 from owncloud/scanner-user-not-setup
skip scanning for a user when the user is not setup yet
This commit is contained in:
commit
0e3737ffe1
|
@ -160,7 +160,12 @@ class Scanner extends PublicEmitter {
|
||||||
if ($storage->instanceOfStorage('\OC\Files\Storage\Home') and
|
if ($storage->instanceOfStorage('\OC\Files\Storage\Home') and
|
||||||
(!$storage->isCreatable('') or !$storage->isCreatable('files'))
|
(!$storage->isCreatable('') or !$storage->isCreatable('files'))
|
||||||
) {
|
) {
|
||||||
|
if ($storage->file_exists('') or $storage->getCache()->inCache('')) {
|
||||||
throw new ForbiddenException();
|
throw new ForbiddenException();
|
||||||
|
} else {// if the root exists in neither the cache nor the storage the user isn't setup yet
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
$relativePath = $mount->getInternalPath($dir);
|
$relativePath = $mount->getInternalPath($dir);
|
||||||
$scanner = $storage->getScanner();
|
$scanner = $storage->getScanner();
|
||||||
|
|
Loading…
Reference in New Issue