1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 18:22:41 +01:00

Scope commits page on people to just your commits

Summary: This is overly broad and I missed it in local testing with just a single account. Let's pull just the author in.

Test Plan: Review a commit page that wasn't my own, see other authors commits.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D17481
This commit is contained in:
Chad Little 2017-03-07 22:37:42 -08:00
parent 2ebdf2e080
commit abff6dc8a9

View file

@ -59,6 +59,7 @@ final class PhabricatorPeopleProfileCommitsController
$commits = id(new DiffusionCommitQuery()) $commits = id(new DiffusionCommitQuery())
->setViewer($viewer) ->setViewer($viewer)
->withAuthorPHIDs(array($user->getPHID()))
->needAuditRequests(true) ->needAuditRequests(true)
->needCommitData(true) ->needCommitData(true)
->needDrafts(true) ->needDrafts(true)