Repository navigation
ποΈ(backend) require present document access for thread/comment writes - #2840
Conversation
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review info
WalkthroughThread and comment permission checks now require current document access. Model abilities and API tests cover revoked access, including denied writes and checks that stored state remains unchanged. The changelog records the backend permission fix. Priority: β Normal Estimated code review effort: 3 (Moderate) | ~20 minutes Severity of issue fixed: Medium Suggested reviewers: Merge Risk: βͺ Minimal Β· up to
|
33f9ae1 to
d3d195a
Compare
The comment permission/abilities were not checking if the current user still have access to the document, it was only checking if it is the creator to allow it to perform update and destroy actions. We now check the document's comment abilities before checking if it can update or destroy a comment/thread
d3d195a to
a484577
Compare
Added - β¨(docspec) handle DocSpec 4xx/5xx import errors distinctly #2552 - π(frontend) add Crowdin translator context #2785 - β¨(frontend) open the emoji picker when adding a document emoji #2777 Changed - π(frontend) limit heading choices to levels 1β3 - β»οΈ(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775 - π(frontend) update upload loader and error ui #2778 - β¬οΈ(yhub) upgrade @y/hub to 0.10.1 #2853 - βΏοΈ(frontend) allow opening the home button in a new tab #2839 - π(frontend) use 12px for error page home links #2809 Fixed - π(frontend) don't add a reader's duplicate to the doc tree #2860 - π(frontend) fix confirmation modal for duplicating sub-docs #2860 - π(frontend) wrap long unbroken document titles #2852 - π(frontend) wrap long text in the print export #2813 - ποΈ(backend) bind comment thread to the path document on creation #2838 - π(frontend) fix search highlight hidden inside code blocks #2681 - ποΈ(backend) require present document access for thread and comment writes #2840 - π(backend) enforce resource server action restrictions on the external API #2745 - π(backend) mark only the top duplicate as a copy, after its title #2855 - π(yhub) measure migration durations with a monotonic clock #2814 - π(backend) send the mention email when the cache is unreachable #2803 - π(backend) give media-auth its own throttle scope - π(frontend) remove the vertical line next to nested blocks #2825
Added - β¨(docspec) handle DocSpec 4xx/5xx import errors distinctly #2552 - π(frontend) add Crowdin translator context #2785 - β¨(frontend) open the emoji picker when adding a document emoji #2777 Changed - π(frontend) limit heading choices to levels 1β3 - β»οΈ(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775 - π(frontend) update upload loader and error ui #2778 - β¬οΈ(yhub) upgrade @y/hub to 0.10.1 #2853 - βΏοΈ(frontend) allow opening the home button in a new tab #2839 - π(frontend) use 12px for error page home links #2809 Fixed - π(frontend) don't add a reader's duplicate to the doc tree #2860 - π(frontend) fix confirmation modal for duplicating sub-docs #2860 - π(frontend) wrap long unbroken document titles #2852 - π(frontend) wrap long text in the print export #2813 - ποΈ(backend) bind comment thread to the path document on creation #2838 - π(frontend) fix search highlight hidden inside code blocks #2681 - ποΈ(backend) require present document access for thread and comment writes #2840 - π(backend) enforce resource server action restrictions on the external API #2745 - π(backend) mark only the top duplicate as a copy, after its title #2855 - π(yhub) measure migration durations with a monotonic clock #2814 - π(backend) send the mention email when the cache is unreachable #2803 - π(backend) give media-auth its own throttle scope - π(frontend) remove the vertical line next to nested blocks #2825
Added - β¨(docspec) handle DocSpec 4xx/5xx import errors distinctly #2552 - π(frontend) add Crowdin translator context #2785 - β¨(frontend) open the emoji picker when adding a document emoji #2777 Changed - π(frontend) limit heading choices to levels 1β3 - β»οΈ(frontend) replace outdated AGPL mentions of BlockNote XL packages #2775 - π(frontend) update upload loader and error ui #2778 - β¬οΈ(yhub) upgrade @y/hub to 0.10.1 #2853 - βΏοΈ(frontend) allow opening the home button in a new tab #2839 - π(frontend) use 12px for error page home links #2809 Fixed - π(frontend) don't add a reader's duplicate to the doc tree #2860 - π(frontend) fix confirmation modal for duplicating sub-docs #2860 - π(frontend) wrap long unbroken document titles #2852 - π(frontend) wrap long text in the print export #2813 - ποΈ(backend) bind comment thread to the path document on creation #2838 - π(frontend) fix search highlight hidden inside code blocks #2681 - ποΈ(backend) require present document access for thread and comment writes #2840 - π(backend) enforce resource server action restrictions on the external API #2745 - π(backend) mark only the top duplicate as a copy, after its title #2855 - π(yhub) measure migration durations with a monotonic clock #2814 - π(backend) send the mention email when the cache is unreachable #2803 - π(backend) give media-auth its own throttle scope - π(frontend) remove the vertical line next to nested blocks #2825

Purpose
The comment permission/abilities were not checking if the current user
still have access to the document, it was only checking if it is the
creator to allow it to perform update and destroy actions.
We now check the document's comment abilities before checking if it can
update or destroy a comment/thread
Proposal