mirror of
https://github.com/nextcloud/server.git
synced 2026-06-13 18:50:47 -04:00
Merge pull request #31035 from paierlep/fix/occ_scan_no_files_error
Removes misleading error message in occ files:scan for new users.
This commit is contained in:
commit
787716613f
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ class Scanner extends PublicEmitter {
|
|||
if ($storage->instanceOfStorage('\OC\Files\Storage\Home') and
|
||||
(!$storage->isCreatable('') or !$storage->isCreatable('files'))
|
||||
) {
|
||||
if ($storage->file_exists('') or $storage->getCache()->inCache('')) {
|
||||
if ($storage->is_dir('files')) {
|
||||
throw new ForbiddenException();
|
||||
} else {// if the root exists in neither the cache nor the storage the user isn't setup yet
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue