Skip to content

Commit

Permalink
Renamings
Browse files Browse the repository at this point in the history
  • Loading branch information
darunrs committed Apr 17, 2024
1 parent 4394024 commit 26ecb4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runner/src/provisioner/provisioner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ export default class Provisioner {
if (tablePermissions) {
return permissionsToCheck.some((permission: string) => {
const permissionAttribute = `${permission}_permissions` as keyof Omit<HasuraTableMetadata, 'table'>;
// 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;
Expand Down

0 comments on commit 26ecb4c

Please sign in to comment.