mirror of
https://github.com/outline/outline.git
synced 2026-11-26 15:43:48 +03:00
fix: Incorrect template permission check disallows member template creation
closes #6203
This commit is contained in:
1 parent
889070012a
commit
2bbc384b5a
1 file changed
+1
-1
@@ -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),
|
||||
|
||||
Reference in new issue
Block a user