Merge lp:~abentley/launchpad/private-product-listings into lp:launchpad
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Aaron Bentley on 2012-10-16 | ||||||||
| Approved revision: | no longer in the source branch. | ||||||||
| Merged at revision: | 16153 | ||||||||
| Proposed branch: | lp:~abentley/launchpad/private-product-listings | ||||||||
| Merge into: | lp:launchpad | ||||||||
| Diff against target: |
523 lines (+268/-21) 8 files modified
lib/lp/registry/browser/product.py (+7/-3) lib/lp/registry/browser/tests/test_product.py (+79/-0) lib/lp/registry/doc/commercialsubscription.txt (+21/-8) lib/lp/registry/interfaces/product.py (+3/-1) lib/lp/registry/model/product.py (+30/-7) lib/lp/registry/scripts/productreleasefinder/finder.py (+1/-1) lib/lp/registry/templates/products-index.pt (+1/-1) lib/lp/registry/tests/test_product.py (+126/-0) |
||||||||
| To merge this branch: | bzr merge lp:~abentley/launchpad/private-product-listings | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Richard Harding (community) | 2012-10-09 | Approve on 2012-10-16 | |
|
Review via email:
|
|||
Commit Message
Do not attempt to list Products for users who cannot view them.
Description of the Change
= Summary =
Fix bug #1063264: Cannot view /projects when a private project is in the list
== Proposed fix ==
List only those products that the user can view.
== Pre-implementation notes ==
None
== LOC Rationale ==
Part of Private Projects
== Implementation details ==
Launchpad admins and commercial admins should be able to review all products. This is handled in getProductPriva
ProductSetView.
== Tests ==
bin/test -t getProductPriva
test_admin_
== Demo and Q/A ==
Create a proprietary product. It should be visible in /projects and projects/+all. Log in as a different user. It should not be visible. Share the product with another user. It should be visible to that user.
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
lib/lp/
