brainloper-ui 14.0.19 → 14.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1599,7 +1599,7 @@ class DataTableComponent {
1599
1599
  }
1600
1600
  }
1601
1601
  validateRolAndPermission() {
1602
- if (this.roleId == 0) {
1602
+ if (this.roleId != 0) {
1603
1603
  let rolePermissions = rolesAndPermissions?.find(x => x.id == this.roleId);
1604
1604
  this.hasAccessToAll = rolePermissions?.hasAccessToAll ?? rolePermissions.modules?.find(x => x.id == this.moduleId)?.hasAccessToAll ?? false;
1605
1605
  }