From 26bd94fcdee5ac2470351bf472b8d586786e3ecc Mon Sep 17 00:00:00 2001 From: Jan Cizmar Date: Tue, 23 Jul 2024 19:10:48 +0200 Subject: [PATCH] fix: Missing organization base permission fix --- .../src/main/kotlin/io/tolgee/repository/ProjectRepository.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/data/src/main/kotlin/io/tolgee/repository/ProjectRepository.kt b/backend/data/src/main/kotlin/io/tolgee/repository/ProjectRepository.kt index 212d7e02fe..be1204029b 100644 --- a/backend/data/src/main/kotlin/io/tolgee/repository/ProjectRepository.kt +++ b/backend/data/src/main/kotlin/io/tolgee/repository/ProjectRepository.kt @@ -22,6 +22,7 @@ interface ProjectRepository : JpaRepository { left join r.defaultNamespace dn left join Permission p on p.project = r and p.user.id = :userAccountId left join Organization o on r.organizationOwner = o + left join fetch o.basePermission left join OrganizationRole role on role.organization = o and role.user.id = :userAccountId """ }