1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-15 03:12:41 +01:00
phorge-phorge/src/applications/differential/controller
Bob Trahan 77eae81e1a Policy - fix up DifferentialChangesetParser
Summary:
Ref T7094. We should do a policy query on the files IMO because there exists a scenario where the file gets locked down directly. This requires being a bit more disciplined about setting user, which in turn requires deciding whether or not to show edit / reply links as a separate piece of logic, not conditional on user presence.

This is not the best code but I don't think it gets worse with this and is just some other nuance in any larger cleanup we take on someday.

Test Plan: looked at a revision and noted inline comments rendered correctly with reply / edit actions. looked at a diff standalone and noted no reply / edit actions as expected. looked at a "details" link on a transaction and it rendered correctly. looked at a diff in phriction of page edits and it looked good. grepped around and verified the remaining callsite in diffusion already has the setUser call.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7094

Differential Revision: https://secure.phabricator.com/D11579
2015-01-30 11:17:34 -08:00
..
DifferentialChangesetViewController.php Policy - fix up DifferentialChangesetParser 2015-01-30 11:17:34 -08:00
DifferentialCommentPreviewController.php Migrate Differential revision edges to use modern EdgeType subclasses 2015-01-01 15:07:03 +11:00
DifferentialCommentSaveController.php Differential - return a better response for validation error cases 2015-01-20 13:59:17 -08:00
DifferentialController.php Increase visibility of PhabricatorController::buildApplicationMenu methods 2015-01-16 07:41:26 +11:00
DifferentialDiffCreateController.php Differential - allow setting viewPolicy from web ui during diff creation process 2014-11-19 12:16:07 -08:00
DifferentialDiffViewController.php Differential - refine selecting a repository diff --> revision workflow 2014-11-19 11:11:09 -08:00
DifferentialInlineCommentEditController.php Change double quotes to single quotes. 2014-06-09 11:36:50 -07:00
DifferentialInlineCommentPreviewController.php Abstract access to DifferentialInlineComment behind a Query 2013-06-21 12:54:56 -07:00
DifferentialRevisionCloseDetailsController.php Increase clarity when closing a revision in response to a commit 2014-10-13 16:55:26 -07:00
DifferentialRevisionEditController.php Differential - allow setting viewPolicy from web ui during diff creation process 2014-11-19 12:16:07 -08:00
DifferentialRevisionLandController.php Minor formatting changes 2014-10-08 08:39:49 +11:00
DifferentialRevisionListController.php Decouple some aspects of request routing and construction 2014-10-17 05:01:40 -07:00
DifferentialRevisionViewController.php Make border conditional in crumbs 2015-01-28 09:33:49 -08:00