mirror of
https://github.com/outline/outline.git
synced 2026-11-21 13:34:02 +03:00
#13198 (9796407) moved the duplicate gate to team-level createDocument,
which guests and viewers can never hold - so the policy change silently
removed duplicate for guests with edit rights on the source document.
Allow duplicate when the actor can createDocument at team level
(members, preserves #13198) OR update the source (guests, the pre-1.10
capability); the destination collection is still authorized separately
in documents.duplicate. Includes the #13198 regression guard plus
guest positive/negative cases.
Fixes #13715.
Co-authored-by: Instinct Agent <agent@instinct.com>