mirror of
https://github.com/outline/outline.git
synced 2026-11-26 07:33:19 +03:00
fix: Drafts without a collection should be publishable by all members with update rights (#9941)
This commit is contained in:
1 parent
5e176415ab
commit
99655c65d4
1 file changed
+1
@@ -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