diff --git a/packages/basic.gblib/services/DialogKeywords.ts b/packages/basic.gblib/services/DialogKeywords.ts index b929512d..7299a2af 100644 --- a/packages/basic.gblib/services/DialogKeywords.ts +++ b/packages/basic.gblib/services/DialogKeywords.ts @@ -532,10 +532,14 @@ export class DialogKeywords { * @example ALLOW ROLE "DevOps" * */ - public async allowRole({ pid, value: role }) { + public async allowRole({ pid, role }) { const { min, user, proc } = await DialogKeywords.getProcessInfo(pid); const sys = new SystemKeywords(); + if (!role){ + throw new Error(`Invalid access. NULL role specified.`); + } + // Updates current roles allowed from now on this dialog/process. proc.roles = role;