Merge lp://qastaging/~wgrant/launchpad/bug-510180 into lp://qastaging/launchpad

Proposed by William Grant
Status: Merged
Approved by: Graham Binns
Approved revision: no longer in the source branch.
Merged at revision: 11476
Proposed branch: lp://qastaging/~wgrant/launchpad/bug-510180
Merge into: lp://qastaging/launchpad
Diff against target: 27 lines (+6/-1)
2 files modified
lib/canonical/launchpad/security.py (+5/-0)
lib/lp/soyuz/stories/webservice/xx-packageset.txt (+1/-1)
To merge this branch: bzr merge lp://qastaging/~wgrant/launchpad/bug-510180
Reviewer Review Type Date Requested Status
Graham Binns (community) code Approve
Review via email: mp+34175@code.qastaging.launchpad.net

Commit message

Anonymous users can now see objects in IPackageset collections

Description of the change

lazr.restful has a nasty habit of excluding items from collections if the user doesn't hold launchpad.View on the object (even if it's accessible with zope.Public). This tiny branch grants launchpad.View on IPackageset to everybody, using the AnonymousAuthorization adapter created for this purpose. It also tweaks a test to ensure that anonymous users can now list the /package-sets collection.

To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.