Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Maniphest Tasks
- T5549: Add "Editable by" policy setting to Paste
- Commits
- Restricted Diffusion Commit
rPa84cd9989398: Paste: Add edit policy
Set edit policy on paste, check that only users meeting the policy requirements can edit it.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Couple of minor things inline, this looks great overall. Thanks!
resources/sql/autopatches/20141230.pasteeditpolicycolumn.sql | ||
---|---|---|
3 | This should be NOT NULL for consistency with other policy columns. | |
resources/sql/autopatches/20141230.pasteeditpolicyexisting.sql | ||
3 | Since the column will be NOT NULL, this should be WHERE editPolicy = ''. | |
src/applications/paste/capability/PasteDefaultEditCapability.php | ||
12–14 | Remove this; public edits aren't supported (principally, we don't have a user to attribute the edit to). | |
src/applications/paste/storage/PhabricatorPaste.php | ||
58 | Yeah, just make this policy (which should be the default, so you can omit it). The policy? spec on viewPolicy is an error that we just haven't cleaned up yet (see T6203). |