new (basic.gbapp): ALLOW ROLE keyword.

This commit is contained in:
Rodrigo Rodriguez 2023-08-25 18:39:12 -03:00
parent e8d057cb39
commit 1f9ea89ab9

View file

@ -547,7 +547,7 @@ export class DialogKeywords {
// Checks access.
const filters = [`${role}=x`, `id=${user.userSystemId}`];
const people = await sys.find({pid, handle:"People.xlsx", args:[filters]});
const people = await sys.find({pid, handle:null, args:["People.xlsx", filters]});
if (!people){
throw new Error(`Invalid access. Check if People sheet has the role ${role} checked.`);