Don't show archived projects by default in policy control

Summary:
When filling in filler projects, only select active ones.

Also use a slightly more modern method signature.

Test Plan: Disabled a project, saw it vanish from the control.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D15199
This commit is contained in:
epriestley
2016-02-06 12:40:31 -08:00
parent 5523217fbb
commit 7550557e44
3 changed files with 21 additions and 1 deletions

View File

@@ -130,7 +130,10 @@ final class PhabricatorPeopleProfileViewController
->setViewer($viewer)
->withMemberPHIDs(array($user->getPHID()))
->needImages(true)
->withStatus(PhabricatorProjectQuery::STATUS_OPEN)
->withStatuses(
array(
PhabricatorProjectStatus::STATUS_ACTIVE,
))
->execute();
$header = id(new PHUIHeaderView())