mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix DiffusionBrowseQuery->setUser() vs ->setViewer()
Auditors: vrana
This commit is contained in:
parent
31cc78cc35
commit
f6bba771cb
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ final class DiffusionPathValidateController extends DiffusionController {
|
|||
));
|
||||
|
||||
$browse_query = DiffusionBrowseQuery::newFromDiffusionRequest($drequest);
|
||||
$browse_query->setUser($request->getUser());
|
||||
$browse_query->setViewer($request->getUser());
|
||||
$browse_query->needValidityOnly(true);
|
||||
$valid = $browse_query->loadPaths();
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ final class DiffusionRepositoryController extends DiffusionController {
|
|||
$history = $history_query->loadHistory();
|
||||
|
||||
$browse_query = DiffusionBrowseQuery::newFromDiffusionRequest($drequest);
|
||||
$browse_query->setUser($this->getRequest()->getUser());
|
||||
$browse_query->setViewer($this->getRequest()->getUser());
|
||||
$browse_results = $browse_query->loadPaths();
|
||||
|
||||
$phids = array();
|
||||
|
|
Loading…
Reference in a new issue