Page MenuHomePhabricator

D11462.diff
No OneTemporary

D11462.diff

diff --git a/src/applications/diffusion/controller/DiffusionServeController.php b/src/applications/diffusion/controller/DiffusionServeController.php
--- a/src/applications/diffusion/controller/DiffusionServeController.php
+++ b/src/applications/diffusion/controller/DiffusionServeController.php
@@ -102,6 +102,11 @@
->withCallsigns(array($callsign))
->executeOne();
if (!$repository) {
+ // Repository was not found with the current policy
+ if($allow_public && $allow_auth && !$viewer->isLoggedIn()) {
+ // Repo might not be pubic even though phabricator is.
+ throw new PhabricatorPolicyException();
+ }
return new PhabricatorVCSResponse(
404,
pht('No such repository exists.'));

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 11:24 AM (20 h, 27 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6805135
Default Alt Text
D11462.diff (785 B)

Event Timeline