forked from extern/egroupware
Api: Fix Asyncservice did not have proper filesystem access as the job user
This commit is contained in:
parent
be34aa1834
commit
f4bcda7aaf
@ -450,6 +450,7 @@ class Asyncservice
|
|||||||
}
|
}
|
||||||
// set VFS user for vfs access rights
|
// set VFS user for vfs access rights
|
||||||
Vfs::$user = $job['account_id'];
|
Vfs::$user = $job['account_id'];
|
||||||
|
Vfs\StreamWrapper::init_static();
|
||||||
Vfs::clearstatcache();
|
Vfs::clearstatcache();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -210,6 +210,10 @@ trait UserContextTrait
|
|||||||
$this->context = stream_context_create($options);
|
$this->context = stream_context_create($options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->context = stream_context_create();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user