rez_core 2.1.83 → 2.1.86

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": "2.1.83",
3
+ "version": "2.1.86",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -141,7 +141,7 @@ export class FilterService {
141
141
  const baseWhere = this.buildWhereClauses(baseFilters, attributeMetaMap);
142
142
 
143
143
  // check level_id and level_type
144
- if (entity_type != 'ORG' && level_type && level_id && organization_id) {
144
+ if (entity_type != 'ORGP' && level_type && level_id && organization_id) {
145
145
  baseWhere.push({
146
146
  query:
147
147
  'e.organization_id = :organization_id AND e.level_type = :level_type AND e.level_id = :level_id',
@@ -22,7 +22,6 @@ export class EntityTableService {
22
22
  ) {}
23
23
 
24
24
  async getEntityData(mappedEntityType: string | null, loggedInUser) {
25
- console.log(mappedEntityType,loggedInUser," loggedInUser in getEntityData");
26
25
  if (mappedEntityType) {
27
26
  const tableMaster =
28
27
  await this.entityTableRepository.findByMappedEntityType(
@@ -178,17 +178,12 @@ export class ModuleAccessService {
178
178
  organization_id || 0,
179
179
  );
180
180
 
181
- console.log('resolveStatus', resolveStatus, 'school', school);
182
-
183
- console.log("BEFRORE")
184
- if (!school || school.status == resolveStatus.id ) {
181
+ if (!school || school.status == resolveStatus.id) {
185
182
  // Return only VIEW permissions
186
- console.log("ANDAR")
187
183
  return allPermissions.filter((perm) => perm.action === 'VIEW');
188
184
  }
189
185
  }
190
186
 
191
- console.log(allPermissions, "allPermissions in getUserPermissions");
192
187
  // Step 4: Return all permissions normally
193
188
  return allPermissions;
194
189
  }