Page MenuHomePhabricator

Fix bad Phortune Subscriptions query
ClosedPublic

Authored by epriestley on Feb 16 2015, 7:14 PM.
Tags
None
Referenced Files
F19153672: D11780.diff
Thu, Dec 11, 11:34 AM
F18945476: D11780.id.diff
Nov 11 2025, 6:19 PM
F18933556: D11780.diff
Nov 10 2025, 11:47 AM
F18827415: D11780.diff
Oct 24 2025, 9:56 AM
F18754774: D11780.diff
Oct 5 2025, 1:16 AM
F18743229: D11780.id28396.diff
Oct 2 2025, 10:51 PM
F18704576: D11780.id.diff
Sep 28 2025, 8:10 AM
F18624846: D11780.diff
Sep 15 2025, 9:13 PM
Subscribers

Details

Summary

Fixes T7285. If the user tries to view a subscription they don't have permission to view, we may filter all the subscriptions out, then still try to load related data. This can fatal because it's invalid.

Instead, bail if we filtered everything.

Test Plan

Subscritption detail page of another user's subscription is now 404 instead of fatal.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Fix bad Phortune Subscriptions query.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added reviewers: chad, btrahan.
chad edited edge metadata.
This revision is now accepted and ready to land.Feb 16 2015, 7:17 PM
This revision was automatically updated to reflect the committed changes.