Page MenuHomePhabricator

D11655.diff
No OneTemporary

D11655.diff

diff --git a/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php b/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
--- a/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
+++ b/src/applications/drydock/blueprint/DrydockWorkingCopyBlueprintImplementation.php
@@ -40,9 +40,10 @@
"Lease is missing required 'repositoryID' attribute.");
}
- // TODO: (T603) Figure out the interaction between policies and
- // Drydock.
- $repository = id(new PhabricatorRepository())->load($repository_id);
+ $repository = id(new PhabricatorRepositoryQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withIDs(array($repository_id))
+ ->executeOne();
if (!$repository) {
throw new Exception(

File Metadata

Mime Type
text/plain
Expires
Sun, Mar 30, 5:49 PM (5 d, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7725173
Default Alt Text
D11655.diff (836 B)

Event Timeline