Page MenuHomePhabricator

Fix bad Phortune Subscriptions query
ClosedPublic

Authored by epriestley on Feb 16 2015, 7:14 PM.
Tags
None
Referenced Files
F15538324: D11780.id28396.diff
Thu, Apr 24, 6:37 PM
F15537954: D11780.id.diff
Thu, Apr 24, 4:56 PM
F15531488: D11780.diff
Wed, Apr 23, 11:32 AM
F15514168: D11780.diff
Fri, Apr 18, 12:57 AM
F15486902: D11780.diff
Thu, Apr 10, 9:57 AM
F15416318: D11780.diff
Mar 20 2025, 10:30 AM
F15399177: D11780.id28395.diff
Mar 17 2025, 3:12 AM
F15397119: D11780.id28396.diff
Mar 16 2025, 6:14 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.