1
0
Fork 0
mirror of synced 2024-06-26 18:20:43 +12:00

Permission bug fix

This commit is contained in:
Matej Bačo 2022-11-21 11:20:52 +00:00
parent 8feb3dc43c
commit 831960245f

View file

@ -1133,7 +1133,7 @@ App::post('/v1/functions/:functionId/executions')
}
$execution->setAttribute('status', 'processing');
$execution = $dbForProject->updateDocument('executions', $executionId, $execution);
Authorization::skip(fn () => $dbForProject->updateDocument('executions', $executionId, $execution));
$vars = array_reduce($function['vars'] ?? [], function (array $carry, Document $var) {
$carry[$var->getAttribute('key')] = $var->getAttribute('value') ?? '';