mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 16:30:59 +01:00
Fix bug with macros search being global.
Summary: This fixed a bug with macros search finding macros flagged by any user. We should only look at flags by the current user. Test Plan: Verify that no macros flagged by another user show up in macros search. Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D6717
This commit is contained in:
parent
4657158e71
commit
52225f7eb9
1 changed files with 1 additions and 0 deletions
|
@ -170,6 +170,7 @@ final class PhabricatorMacroQuery
|
|||
|
||||
if ($this->flagColor != '-1' && $this->flagColor !== null) {
|
||||
$flags = id(new PhabricatorFlagQuery())
|
||||
->withOwnerPHIDs(array($this->getViewer()->getPHID()))
|
||||
->withTypes(array(PhabricatorMacroPHIDTypeMacro::TYPECONST))
|
||||
->withColor($this->flagColor)
|
||||
->setViewer($this->getViewer())
|
||||
|
|
Loading…
Reference in a new issue