fix: Drafts without a collection should be publishable by all members with update rights (#9941)

This commit is contained in:
Tom Moor
2025-08-15 07:16:09 -04:00
committed by GitHub
parent 5e176415ab
commit 99655c65d4
+1
View File
@@ -158,6 +158,7 @@ allow(User, "move", Document, (actor, document) =>
or(
can(actor, "updateDocument", document?.collection),
and(!!document?.isDraft && actor.id === document?.createdById),
and(!!document?.isDraft && !document?.collection),
and(
!!document?.isWorkspaceTemplate,
or(