diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-08-30 13:19:15 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-09-03 09:57:09 +0200 |
commit | f57fa231f7e4d2e9ec11a8d28d2493ffd39f2c6c (patch) | |
tree | f85a38f05e3a00c7f3afa861f561efd8b2077524 | |
parent | 50769b5966c2c7b324ed5ab46919b756dc7b15c2 (diff) | |
download | nextcloud-server-f57fa231f7e4d2e9ec11a8d28d2493ffd39f2c6c.tar.gz nextcloud-server-f57fa231f7e4d2e9ec11a8d28d2493ffd39f2c6c.zip |
Be sure to get the jailed path if the storage is a jail
Fixes: https://github.com/nextcloud/groupfolders/issues/583
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-rw-r--r-- | apps/workflowengine/lib/Manager.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/workflowengine/lib/Manager.php b/apps/workflowengine/lib/Manager.php index 48d29cf207e..080faa6bfc1 100644 --- a/apps/workflowengine/lib/Manager.php +++ b/apps/workflowengine/lib/Manager.php @@ -22,6 +22,7 @@ namespace OCA\WorkflowEngine; +use OC\Files\Storage\Wrapper\Jail; use OCP\AppFramework\QueryException; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\Storage\IStorage; @@ -71,6 +72,10 @@ class Manager implements IManager { */ public function setFileInfo(IStorage $storage, $path) { $this->storage = $storage; + + if ($storage->instanceOfStorage(Jail::class)) { + $path = $storage->getJailedPath($path); + } $this->path = $path; } |