Add an API to populate the security check cache for optimization
Bug #324546 reported by
Francis J. Lacoste
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
Low
|
Unassigned |
Bug Description
Some of our API that returns list of objects takes privacy into account and only return obejcts that the user can access. But the security wrapper for these obejct will issue other requests to redo that check.
To optimize this we should offer an API that the code can use to tell the security policy that the user has permission on these objects so that the checks aren't made again.
Changed in launchpad-foundations: | |
importance: | Undecided → Low |
status: | New → Triaged |
tags: | added: tech-debt |
To post a comment you must log in.
That's lp.services. webapp. authorization. precache_ permission_ for_objects