fix: Incorrect template permission check disallows member template creation

closes #6203
This commit is contained in:
Tom Moor
2023-12-01 21:18:13 -05:00
parent 889070012a
commit 2bbc384b5a

View File

@@ -35,7 +35,7 @@ function NewTemplateMenu() {
collections.orderedData.reduce<MenuItem[]>((filtered, collection) => {
const can = policies.abilities(collection.id);
if (can.update) {
if (can.createDocument) {
filtered.push({
type: "route",
to: newTemplatePath(collection.id),