Merge lp:~stevenk/launchpad/subscribers-can-view-p3as into lp:launchpad
Proposed by
Steve Kowalik
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11057 |
Proposed branch: | lp:~stevenk/launchpad/subscribers-can-view-p3as |
Merge into: | lp:launchpad |
Diff against target: |
227 lines (+166/-2) 4 files modified
lib/canonical/launchpad/security.py (+8/-1) lib/lp/soyuz/browser/archive.py (+17/-1) lib/lp/soyuz/browser/tests/test_archive_packages.py (+101/-0) lib/lp/soyuz/tests/test_archive_privacy.py (+40/-0) |
To merge this branch: | bzr merge lp:~stevenk/launchpad/subscribers-can-view-p3as |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jelmer Vernooij (community) | code | Approve | |
Review via email: mp+27806@code.launchpad.net |
Description of the change
Allow subscribers to view P3As, but do not allow them to view +packages. Add tests that check that the links they receive are disabled, and that they receive 403 errors when they browse there directly.
To post a comment you must log in.
Just a small note on the vertical whitespace mid function: PEP8 says
to use that sparingly to separate logically distinct areas of a single
function; the 'list of things to check' is one big area IMO - I would
delete the vertical white space there.
-Rob