From 6e5d025ba61fd17fe7b1b903a768fc3c25cc3737 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodriguez Date: Fri, 25 Aug 2023 18:43:50 -0300 Subject: [PATCH] new (basic.gbapp): ALLOW ROLE keyword. --- packages/basic.gblib/services/DialogKeywords.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index 5862ec37..7cf8e71f 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -546,8 +546,8 @@ export class DialogKeywords { // Checks access. - const filters = [`${role}=x`, `id=${user.userSystemId}`]; - const people = await sys.find({pid, handle:null, args:["People.xlsx", filters]}); + const filters = ["People.xlsx", `${role}=x`, `id=${user.userSystemId}`]; + const people = await sys.find({pid, handle:null, args: filters}); if (!people){ throw new Error(`Invalid access. Check if People sheet has the role ${role} checked.`);