Docs: Inherit sharing from parent pages to their subpages
In Notion subpages take on their parent's permissions unless overridden on a specific subpage (https://www.notion.com/help/sharing-and-permissions). Our getDocAccess in lib/docs.ts reads docs_shares WHERE page_id = ? for the page itself only, so sharing a 'Client onboarding' page with a guest or another team gives them the top page while every subpage returns 404, and the owner has to share each child by hand. This makes sharing a section with a contractor or client practically unusable. First scope: walk ancestors in getDocAccess (bounded, cached per request) and take the highest role found, show 'Inherited from <page>' in ShareDialog.tsx, and let the shared-with-me tree show the child pages under the shared root. Priority: high. Effort: M. Compared with Notion.
Comentários 0
Ainda sem comentários.
Entre para comentar