mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
Provide viewer to CustomFields in ApplicationSearch
Summary: Fixes T4663. Test Plan: Added a custom field which accesses the viewer's username. {F133249} Reviewers: carl, btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T4663 Differential Revision: https://secure.phabricator.com/D8595
This commit is contained in:
parent
2547a222d8
commit
07fdcde87e
1 changed files with 1 additions and 0 deletions
|
@ -511,6 +511,7 @@ abstract class PhabricatorApplicationSearchEngine {
|
|||
$fields = PhabricatorCustomField::getObjectFields(
|
||||
$object,
|
||||
PhabricatorCustomField::ROLE_APPLICATIONSEARCH);
|
||||
$fields->setViewer($this->requireViewer());
|
||||
} else {
|
||||
$fields = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue