summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-12-15 11:50:04 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-12-15 11:50:04 +0100
commit04cd1348ec2c6ee2f4d6d728d335f5080328853d (patch)
tree28c9a4667b04cd41a9755de2f4ddfaea0c8e0aa7 /apps/workflowengine
parent14bbec5fa79dca66c6773083c5e0c0c3b3836d70 (diff)
downloadnextcloud-server-04cd1348ec2c6ee2f4d6d728d335f5080328853d.tar.gz
nextcloud-server-04cd1348ec2c6ee2f4d6d728d335f5080328853d.zip
consider local external storages, too
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/lib/Check/FileName.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/workflowengine/lib/Check/FileName.php b/apps/workflowengine/lib/Check/FileName.php
index 893a9a72605..9a564f85f63 100644
--- a/apps/workflowengine/lib/Check/FileName.php
+++ b/apps/workflowengine/lib/Check/FileName.php
@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace OCA\WorkflowEngine\Check;
+use OC\Files\Storage\Local;
use OCA\WorkflowEngine\Entity\File;
use OCP\Files\Mount\IMountManager;
use OCP\IL10N;
@@ -52,7 +53,7 @@ class FileName extends AbstractStringCheck implements IFileCheck {
*/
protected function getActualValue(): string {
$fileName = $this->path === null ? '' : basename($this->path);
- if ($fileName === '' && !$this->storage->isLocal()) {
+ if ($fileName === '' && (!$this->storage->isLocal() || $this->storage->instanceOfStorage(Local::class))) {
// Return the mountpoint name of external storages that are not mounted as user home
$mountPoints = $this->mountManager->findByStorageId($this->storage->getId());
if (empty($mountPoints) || $mountPoints[0]->getMountType() !== 'external') {