feat(ee): templates (#2215)

* feat(ee): templates
* fix tree
* fix
This commit is contained in:
Philip Okugbe
2026-05-19 02:41:52 +01:00
committed by GitHub
parent 0d6538ab1a
commit 6cf8101ab3
25 changed files with 752 additions and 76 deletions
@@ -63,11 +63,9 @@ export class TemplateRepo {
if (opts?.spaceId) {
if (!accessibleSpaceIds.includes(opts.spaceId)) {
query = query.where('spaceId', 'is', null);
query = query.where(sql<boolean>`false`);
} else {
query = query.where((eb) =>
eb.or([eb('spaceId', '=', opts.spaceId), eb('spaceId', 'is', null)]),
);
query = query.where('spaceId', '=', opts.spaceId);
}
} else {
query = query.where((eb) =>