Page MenuHomePhabricator

Don't require any special capabilities to apply a "closed a subtask" transaction to a parent task
ClosedPublic

Authored by epriestley on Feb 28 2019, 4:09 PM.
Tags
None
Referenced Files
F18985052: D20223.id48283.diff
Mon, Nov 17, 12:51 PM
F18881952: D20223.id.diff
Thu, Nov 6, 10:15 PM
F18868955: D20223.diff
Tue, Nov 4, 9:22 AM
F18784022: D20223.diff
Oct 13 2025, 11:40 AM
F18770218: D20223.diff
Oct 8 2025, 11:23 AM
F18759615: D20223.id48283.diff
Oct 6 2025, 4:46 AM
F18739940: D20223.id.diff
Oct 1 2025, 11:37 PM
F18733913: D20223.id.diff
Sep 30 2025, 10:44 PM
Subscribers
None

Details

Summary

See PHI1059. If you close a task, we apply an "alice closed a subtask: X" transaction to its parents.

This transaction is purely informative, but currently requires CAN_EDIT permission after T13186. However, we'd prefer to post this transaction anyway, even if: the parent is locked; or the parent is not editable by the acting user.

Replace the implicit CAN_EDIT requirement with no requirement.

(This transaction is only applied internally (by closing a subtask) and can't be applied via the API or any other channel, so this doesn't let attackers spam a bunch of bogus subtask closures all over the place or anything.)

Test Plan
  • Created a parent task A with subtask B.
  • Put task A into an "Edits Locked" status.
  • As a user other than the owner of A, closed B.

Then:

  • Before: Policy exception when trying to apply the "alice closed a subtask: B" transaction to A.
  • After: B closed, A got a transaction despite being locked.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable