Api: Fix Asyncservice did not have proper filesystem access as the job user

This commit is contained in:
nathangray 2021-06-04 13:58:59 -06:00
parent 0574b95eda
commit 12591f3911
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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;
} }
} }