Skip to content
Snippets Groups Projects
Unverified Commit b385c715 authored by youngcw's avatar youngcw Committed by GitHub
Browse files

[Goals]: don't run templates in hidden groups (#2100)

* don't run templates in hidden groups

* note

* lint
parent 77e550f0
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,12 @@ export function runCheckTemplates() { ...@@ -44,7 +44,12 @@ export function runCheckTemplates() {
async function getCategories() { async function getCategories() {
return await db.all( return await db.all(
'SELECT * FROM v_categories WHERE tombstone = 0 AND hidden = 0', `
SELECT categories.* FROM categories
INNER JOIN category_groups on categories.cat_group = category_groups.id
WHERE categories.tombstone = 0 AND categories.hidden = 0
AND category_groups.hidden = 0
`,
); );
} }
......
---
category: Bugfix
authors: [youngcw]
---
Goals: Don't run templates on non-hidden categories inside of hidden groups
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment