Merge lp:~wgrant/launchpad/anon-dsp into lp:launchpad

Proposed by William Grant
Status: Merged
Merged at revision: 18559
Proposed branch: lp:~wgrant/launchpad/anon-dsp
Merge into: lp:launchpad
Diff against target: 15 lines (+5/-0)
1 file modified
lib/lp/security.py (+5/-0)
To merge this branch: bzr merge lp:~wgrant/launchpad/anon-dsp
Reviewer Review Type Date Requested Status
Colin Watson (community) code Approve
Review via email: mp+338362@code.launchpad.net

Commit message

Allow anonymous launchpad.View on IDistributionSourcePackage.

Description of the change

Allow anonymous launchpad.View on IDistributionSourcePackage.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/security.py'
2--- lib/lp/security.py 2017-07-18 16:22:03 +0000
3+++ lib/lp/security.py 2018-02-21 01:10:49 +0000
4@@ -1167,6 +1167,11 @@
5 return user.isOwner(self.obj) or user.in_admin
6
7
8+class ViewDistributionSourcePackage(AnonymousAuthorization):
9+ """Anyone can view a DistributionSourcePackage."""
10+ usedfor = IDistributionSourcePackage
11+
12+
13 class BugSuperviseDistributionSourcePackage(AuthorizationBase):
14 """The owner of a distribution should be able to edit its source
15 package information"""