Repository navigation
Conversation
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
|
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 access revocation, including rejected writes and unchanged stored state. Priority: ⬇️ Low Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: Fixed issue severity: <fixed_issue_severity>Medium</fixed_issue_severity> Merge Risk: ⚪ Minimal · up to
|
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