Skip to content

Commit 46a3324

Browse files
blizzzrullzer
authored andcommitted
consider local external storages, too
Signed-off-by: Arthur Schiwon <[email protected]>
1 parent edeb246 commit 46a3324

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/workflowengine/lib/Check/FileName.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
namespace OCA\WorkflowEngine\Check;
2424

25+
use OC\Files\Storage\Local;
2526
use OCA\WorkflowEngine\Entity\File;
2627
use OCP\Files\Mount\IMountManager;
2728
use OCP\IL10N;
@@ -51,7 +52,7 @@ public function __construct(IL10N $l, IRequest $request, IMountManager $mountMan
5152
*/
5253
protected function getActualValue(): string {
5354
$fileName = $this->path === null ? '' : basename($this->path);
54-
if ($fileName === '' && !$this->storage->isLocal()) {
55+
if ($fileName === '' && (!$this->storage->isLocal() || $this->storage->instanceOfStorage(Local::class))) {
5556
// Return the mountpoint name of external storages that are not mounted as user home
5657
$mountPoints = $this->mountManager->findByStorageId($this->storage->getId());
5758
if (empty($mountPoints) || $mountPoints[0]->getMountType() !== 'external') {

0 commit comments

Comments
 (0)