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

@@ -8,7 +8,8 @@ final class DrydockLogController extends DrydockController {
$nav = $this->buildSideNav('log');
$query = new DrydockLogQuery();
$query = id(new DrydockLogQuery())
->setViewer($user);
$resource_ids = $request->getStrList('resource');
if ($resource_ids) {