new (basic.gbapp): ALLOW ROLE keyword.
This commit is contained in:
parent
e8d057cb39
commit
1f9ea89ab9
1 changed files with 1 additions and 1 deletions
|
@ -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.`);
|
||||
|
|
Loading…
Add table
Reference in a new issue