launchpad-reviewers team mailing list archive
-
launchpad-reviewers team
-
Mailing list archive
-
Message #22195
[Merge] lp:~wgrant/launchpad/anon-dsp into lp:launchpad
William Grant has proposed merging lp:~wgrant/launchpad/anon-dsp into lp:launchpad.
Commit message:
Allow anonymous launchpad.View on IDistributionSourcePackage.
Requested reviews:
Launchpad code reviewers (launchpad-reviewers)
For more details, see:
https://code.launchpad.net/~wgrant/launchpad/anon-dsp/+merge/338362
Allow anonymous launchpad.View on IDistributionSourcePackage.
--
Your team Launchpad code reviewers is requested to review the proposed merge of lp:~wgrant/launchpad/anon-dsp into lp:launchpad.
=== modified file 'lib/lp/security.py'
--- lib/lp/security.py 2017-07-18 16:22:03 +0000
+++ lib/lp/security.py 2018-02-21 01:10:49 +0000
@@ -1167,6 +1167,11 @@
return user.isOwner(self.obj) or user.in_admin
+class ViewDistributionSourcePackage(AnonymousAuthorization):
+ """Anyone can view a DistributionSourcePackage."""
+ usedfor = IDistributionSourcePackage
+
+
class BugSuperviseDistributionSourcePackage(AuthorizationBase):
"""The owner of a distribution should be able to edit its source
package information"""
Follow ups