Skip to content
Snippets Groups Projects
Unverified Commit 361ff312 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #16932 from nextcloud/fix/workflow/jails

Be sure to get the jailed path if the storage is a jail
parents 739e25e1 f57fa231
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment