Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14115357
D11462.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
785 B
Referenced Files
None
Subscribers
None
D11462.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11462: Fixed T7000
Attached
Detach File
Event Timeline
Log In to Comment