Skip to content

Commit 7c43a86

Browse files
committed
fix entitlement validation when client doesn't exist
1 parent 4232096 commit 7c43a86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/webapp/app/runEngine/validators/triggerTaskValidator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class DefaultTriggerTaskValidator implements TriggerTaskValidator {
4646

4747
const result = await getEntitlement(environment.organizationId);
4848

49-
if (!result || result.hasAccess === false) {
49+
if (result && result.hasAccess === false) {
5050
return {
5151
ok: false,
5252
error: new OutOfEntitlementError(),

0 commit comments

Comments
 (0)