rez_core 2.1.84 → 2.1.87
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/dist/module/filter/service/filter.service.js +1 -1
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/meta/controller/media.controller.js +2 -0
- package/dist/module/meta/controller/media.controller.js.map +1 -1
- package/dist/module/meta/service/entity-table.service.js +0 -1
- package/dist/module/meta/service/entity-table.service.js.map +1 -1
- package/dist/module/module/service/module-access.service.js +0 -4
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/filter/service/filter.service.ts +1 -1
- package/src/module/meta/controller/media.controller.ts +1 -1
- package/src/module/meta/service/entity-table.service.ts +0 -1
- package/src/module/module/service/module-access.service.ts +1 -6
package/package.json
CHANGED
|
@@ -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 != '
|
|
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',
|
|
@@ -16,7 +16,7 @@ import { ENTITYTYPE_MEDIA } from 'src/constant/global.constant';
|
|
|
16
16
|
import { MediaData } from '../entity/media-data.entity';
|
|
17
17
|
|
|
18
18
|
@Controller('media')
|
|
19
|
-
|
|
19
|
+
@UseGuards(JwtAuthGuard)
|
|
20
20
|
export class MediaController {
|
|
21
21
|
constructor(private readonly mediaDataService: MediaDataService) {}
|
|
22
22
|
|
|
@@ -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
|
-
|
|
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
|
}
|