rez_core 4.0.21 → 4.0.22

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "4.0.21",
3
+ "version": "4.0.22",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -65,19 +65,21 @@ export class EntityValidationService {
65
65
  .where(`${db_table_name}.${attr.attribute_key} = :value`, { value });
66
66
 
67
67
  // Add AND condition for organization_id/level_type/level_id if present
68
- const orgId = loggedInUser.organization_id;
69
- const level_type = loggedInUser.level_type;
70
- const level_id = loggedInUser.level_id;
71
-
72
- if (orgId !== undefined && orgId !== null) {
73
- qb = qb.andWhere(
74
- `${db_table_name}.organization_id = :organization_id AND ${db_table_name}.level_type = :level_type AND ${db_table_name}.level_id = :level_id`,
75
- {
76
- organization_id: orgId,
77
- level_type,
78
- level_id,
79
- },
80
- );
68
+ if (entityType !== 'ORG' && entityType !== 'ORGP') {
69
+ const orgId = loggedInUser.organization_id;
70
+ const level_type = loggedInUser.level_type;
71
+ const level_id = loggedInUser.level_id;
72
+
73
+ if (orgId !== undefined && orgId !== null) {
74
+ qb = qb.andWhere(
75
+ `${db_table_name}.organization_id = :organization_id AND ${db_table_name}.level_type = :level_type AND ${db_table_name}.level_id = :level_id`,
76
+ {
77
+ organization_id: orgId,
78
+ level_type,
79
+ level_id,
80
+ },
81
+ );
82
+ }
81
83
  }
82
84
 
83
85
  // Skip the current record when checking for uniqueness during update
@@ -1,5 +0,0 @@
1
- {
2
- "recommendations": [
3
- "dbaeumer.vscode-eslint"
4
- ]
5
- }