1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 09:12:41 +01:00

Fix DiffusionBrowseQuery->setUser() vs ->setViewer()

Auditors: vrana
This commit is contained in:
epriestley 2013-02-28 17:26:43 -08:00
parent 31cc78cc35
commit f6bba771cb
2 changed files with 2 additions and 2 deletions

View file

@ -27,7 +27,7 @@ final class DiffusionPathValidateController extends DiffusionController {
)); ));
$browse_query = DiffusionBrowseQuery::newFromDiffusionRequest($drequest); $browse_query = DiffusionBrowseQuery::newFromDiffusionRequest($drequest);
$browse_query->setUser($request->getUser()); $browse_query->setViewer($request->getUser());
$browse_query->needValidityOnly(true); $browse_query->needValidityOnly(true);
$valid = $browse_query->loadPaths(); $valid = $browse_query->loadPaths();

View file

@ -19,7 +19,7 @@ final class DiffusionRepositoryController extends DiffusionController {
$history = $history_query->loadHistory(); $history = $history_query->loadHistory();
$browse_query = DiffusionBrowseQuery::newFromDiffusionRequest($drequest); $browse_query = DiffusionBrowseQuery::newFromDiffusionRequest($drequest);
$browse_query->setUser($this->getRequest()->getUser()); $browse_query->setViewer($this->getRequest()->getUser());
$browse_results = $browse_query->loadPaths(); $browse_results = $browse_query->loadPaths();
$phids = array(); $phids = array();