fix: Disallow creating nested document within document in trash
This commit is contained in:
@@ -58,7 +58,7 @@ allow(User, "update", Document, (user, document) => {
|
||||
|
||||
allow(User, "createChildDocument", Document, (user, document) => {
|
||||
if (document.archivedAt) return false;
|
||||
if (document.archivedAt) return false;
|
||||
if (document.deletedAt) return false;
|
||||
if (document.template) return false;
|
||||
if (!document.publishedAt) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user