Skip to content

Commit 23786f0

Browse files
committed
Fix wrongly filtered project action and importers in project detail
1 parent daf78fc commit 23786f0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

wizard-server/src/Wizard/Database/DAO/Project/ProjectDAO.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ findProjectDetail uuid = do
390390
\ FROM project_action \
391391
\ LEFT JOIN pkg k ON true \
392392
\ WHERE project_action.metamodel_version = ${projectActionMetamodelVersion} \
393-
\ AND exists (SELECT 1 \
393+
\ AND tenant_uuid = '${tenantUuid}' AND exists (SELECT 1 \
394394
\ FROM jsonb_array_elements(project_action.allowed_packages) AS spec(elem) \
395395
\ WHERE ((spec.elem ->> 'kmId') IS NULL OR (spec.elem ->> 'kmId') = k.km_id) \
396396
\ AND ((spec.elem ->> 'orgId') IS NULL OR (spec.elem ->> 'orgId') = k.org_id) \
@@ -408,7 +408,7 @@ findProjectDetail uuid = do
408408
\ FROM project_importer \
409409
\ LEFT JOIN pkg k ON true \
410410
\ WHERE project_importer.metamodel_version = ${projectImporterMetamodelVersion} \
411-
\ AND exists (SELECT 1 \
411+
\ AND tenant_uuid = '${tenantUuid}' AND exists (SELECT 1 \
412412
\ FROM jsonb_array_elements(project_importer.allowed_packages) AS spec(elem) \
413413
\ WHERE ((spec.elem ->> 'kmId') IS NULL OR (spec.elem ->> 'kmId') = k.km_id) \
414414
\ AND ((spec.elem ->> 'orgId') IS NULL OR (spec.elem ->> 'orgId') = k.org_id) \
@@ -461,7 +461,7 @@ findProjectDetailQuestionnaire uuid = do
461461
\ FROM project_action \
462462
\ LEFT JOIN pkg k ON true \
463463
\ WHERE project_action.metamodel_version = ${projectActionMetamodelVersion} \
464-
\ AND exists (SELECT 1 \
464+
\ AND tenant_uuid = '${tenantUuid}' AND exists (SELECT 1 \
465465
\ FROM jsonb_array_elements(project_action.allowed_packages) AS spec(elem) \
466466
\ WHERE ((spec.elem ->> 'kmId') IS NULL OR (spec.elem ->> 'kmId') = k.km_id) \
467467
\ AND ((spec.elem ->> 'orgId') IS NULL OR (spec.elem ->> 'orgId') = k.org_id) \
@@ -479,7 +479,7 @@ findProjectDetailQuestionnaire uuid = do
479479
\ FROM project_importer \
480480
\ LEFT JOIN pkg k ON true \
481481
\ WHERE project_importer.metamodel_version = ${projectImporterMetamodelVersion} \
482-
\ AND exists (SELECT 1 \
482+
\ AND tenant_uuid = '${tenantUuid}' AND exists (SELECT 1 \
483483
\ FROM jsonb_array_elements(project_importer.allowed_packages) AS spec(elem) \
484484
\ WHERE ((spec.elem ->> 'kmId') IS NULL OR (spec.elem ->> 'kmId') = k.km_id) \
485485
\ AND ((spec.elem ->> 'orgId') IS NULL OR (spec.elem ->> 'orgId') = k.org_id) \

0 commit comments

Comments
 (0)