Page MenuHomePhabricator

Apply application visibility checks during normal object filtering
ClosedPublic

Authored by epriestley on Jan 1 2017, 7:10 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 8:28 AM
Unknown Object (File)
Thu, Dec 12, 4:48 AM
Unknown Object (File)
Thu, Dec 12, 1:34 AM
Unknown Object (File)
Mon, Dec 2, 10:39 AM
Unknown Object (File)
Tue, Nov 26, 7:02 PM
Unknown Object (File)
Fri, Nov 22, 2:59 AM
Unknown Object (File)
Nov 18 2024, 6:29 AM
Unknown Object (File)
Nov 14 2024, 10:36 AM
Subscribers
None

Details

Summary

Fixes T9058. Normally, "Query" classes apply an application check and just don't load anything if it fails.

However, in some cases (like email recipient filtering) we run policy checks without having run a Query check first. In that case, one user (the actor) loads the object, then we filter it against other users (the recipeints).

Explicitly apply the application check during normal filtering.

Test Plan

Added a failing test case and made it pass.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 2 2017, 1:10 AM
This revision was automatically updated to reflect the committed changes.