diff --git a/runner/src/provisioner/provisioner.ts b/runner/src/provisioner/provisioner.ts index 173fd47c7..4503fa43f 100644 --- a/runner/src/provisioner/provisioner.ts +++ b/runner/src/provisioner/provisioner.ts @@ -307,9 +307,9 @@ export default class Provisioner { if (tablePermissions) { return permissionsToCheck.some((permission: string) => { const permissionAttribute = `${permission}_permissions` as keyof Omit; - // Returns true if the table does not have the permission or the user doesn't have the permission - const userIsLackingPermission = !tablePermissions[permissionAttribute]?.some((role: { role: string }) => role.role === userName); - return userIsLackingPermission; + // Returns true if the table does not have the permission or the role doesn't have the permission + const roleIsLackingPermission = !tablePermissions[permissionAttribute]?.some((role: { role: string }) => role.role === userName); + return roleIsLackingPermission; }); } return true;