diff --git a/app/config/roles.php b/app/config/roles.php index a4f05808fd..65d5694bbf 100644 --- a/app/config/roles.php +++ b/app/config/roles.php @@ -66,6 +66,7 @@ return [ Auth::USER_ROLE_GUESTS => [ 'label' => 'Guests', 'scopes' => [ + 'global', 'public', 'home', 'console', diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index a1263ced35..1cabc77eb7 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -1458,6 +1458,7 @@ App::post('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId') $deployment = $dbForProject->createDocument('deployments', $deployment->setAttributes([ '$id' => $deploymentId, + '$internalId' => '', 'buildId' => '', 'buildInternalId' => '', 'entrypoint' => $function->getAttribute('entrypoint'), diff --git a/app/workers/functions.php b/app/workers/functions.php index aaad7d237e..9fa1c7df16 100644 --- a/app/workers/functions.php +++ b/app/workers/functions.php @@ -106,7 +106,7 @@ Server::setResource('execute', function () { 'functionId' => $function->getId(), 'deploymentInternalId' => $deployment->getInternalId(), 'deploymentId' => $deployment->getId(), - 'trigger' => 'http', + 'trigger' => $trigger, 'status' => 'processing', 'responseStatusCode' => 0, 'responseHeaders' => [],