fix: Incorrect template permission check disallows member template creation
closes #6203
This commit is contained in:
@@ -35,7 +35,7 @@ function NewTemplateMenu() {
|
|||||||
collections.orderedData.reduce<MenuItem[]>((filtered, collection) => {
|
collections.orderedData.reduce<MenuItem[]>((filtered, collection) => {
|
||||||
const can = policies.abilities(collection.id);
|
const can = policies.abilities(collection.id);
|
||||||
|
|
||||||
if (can.update) {
|
if (can.createDocument) {
|
||||||
filtered.push({
|
filtered.push({
|
||||||
type: "route",
|
type: "route",
|
||||||
to: newTemplatePath(collection.id),
|
to: newTemplatePath(collection.id),
|
||||||
|
|||||||
Reference in New Issue
Block a user