Make DrydockLog policy-aware

Summary: Ref T2015. Update DrydockLog for policy awareness and give it a policy query.

Test Plan: Browsed all the log interfaces.

Reviewers: btrahan

Reviewed By: btrahan

CC: hach-que, aran

Maniphest Tasks: T2015

Differential Revision: https://secure.phabricator.com/D7831
This commit is contained in:
epriestley
2013-12-26 12:30:17 -08:00
parent bc3912e641
commit 3db5833622
6 changed files with 65 additions and 36 deletions

View File

@@ -41,6 +41,7 @@ final class DrydockResourceViewController extends DrydockController {
$pager->setOffset($request->getInt('offset'));
$logs = id(new DrydockLogQuery())
->setViewer($user)
->withResourceIDs(array($resource->getID()))
->executeWithOffsetPager($pager);