mirror of
https://github.com/outline/outline.git
synced 2026-05-25 05:09:20 -05:00
fix: Drafts without a collection should be publishable by all members with update rights (#9941)
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user