fix(basic.gblib): update ChatServices.ts #420

Closed
eltociear wants to merge 2540 commits from patch-1 into main
Showing only changes of commit e8d057cb39 - Show all commits

View file

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