summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-01-09 12:29:26 +0100
committerBackportbot <backportbot-noreply@rullzer.com>2020-01-09 15:30:47 +0000
commit029999049cda8cb55a10dcae85771c8bf4435b2a (patch)
tree32accdcb5e4beec1ec35aaa980f46117d05d43fe /apps/workflowengine
parent5fdac43d5b82a9b38bb0be6492ea072fb08f0760 (diff)
downloadnextcloud-server-029999049cda8cb55a10dcae85771c8bf4435b2a.tar.gz
nextcloud-server-029999049cda8cb55a10dcae85771c8bf4435b2a.zip
make the mime type checker for flow available to regular users
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/lib/Check/FileMimeType.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Check/FileMimeType.php b/apps/workflowengine/lib/Check/FileMimeType.php
index 77463d8960a..a684785911b 100644
--- a/apps/workflowengine/lib/Check/FileMimeType.php
+++ b/apps/workflowengine/lib/Check/FileMimeType.php
@@ -154,4 +154,8 @@ class FileMimeType extends AbstractStringCheck implements IFileCheck {
public function supportedEntities(): array {
return [ File::class ];
}
+
+ public function isAvailableForScope(int $scope): bool {
+ return true;
+ }
}