Make Flags policy aware

Summary:
Ref T1809. Ref T603. Ref T3599. Makes flags policy aware.

This change reduces the utility of flag search/browse; the next change will switch it to ApplicationSearch to restore utility. Representing all that ordering in terms of cursor paging is also a giant pain.

Test Plan: Viewed Differential, Flags, etc. Grepped for all PhabricatorFlagQuery callsites.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603, T1809, T3599

Differential Revision: https://secure.phabricator.com/D6746
This commit is contained in:
epriestley
2013-08-13 16:17:42 -07:00
parent 3f9a4d42f7
commit 275f67294c
5 changed files with 83 additions and 206 deletions

View File

@@ -172,7 +172,7 @@ final class PhabricatorMacroQuery
$flags = id(new PhabricatorFlagQuery())
->withOwnerPHIDs(array($this->getViewer()->getPHID()))
->withTypes(array(PhabricatorMacroPHIDTypeMacro::TYPECONST))
->withColor($this->flagColor)
->withColors(array($this->flagColor))
->setViewer($this->getViewer())
->execute();