mirror of
https://github.com/nextcloud/server.git
synced 2026-04-27 09:08:22 -04:00
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>
This commit is contained in:
parent
50769b5966
commit
f57fa231f7
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue