Merge lp:~bac/launchpad/bug-607733 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Curtis Hovey on 2010-07-28 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11252 |
| Proposed branch: | lp:~bac/launchpad/bug-607733 |
| Merge into: | lp:launchpad |
| Diff against target: |
118 lines (+46/-10) 2 files modified
lib/lp/registry/configure.zcml (+1/-1) lib/lp/registry/doc/commercialsubscription.txt (+45/-9) |
| To merge this branch: | bzr merge lp:~bac/launchpad/bug-607733 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Curtis Hovey (community) | code | Approve on 2010-07-28 | |
| Edwin Grubbs | 2010-07-28 | Pending | |
|
Review via email:
|
|||
Commit Message
Change view permissions for ICommercialSubs
Description of the Change
= Summary =
Projects with commercial subscriptions cannot be viewed by anonymous
users, which is horrible.
== Proposed fix ==
Change ICommercialSubs
zope.Public.
== Pre-implementation notes ==
None
== Implementation details ==
As above.
== Tests ==
bin/test -vvt xx-product-
== Demo and Q/A ==
Logout and look at https:/
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
| Brad Crittenden (bac) wrote : | # |
Good suggestion Curtis.
Here are the changes:
http://
| Curtis Hovey (sinzui) wrote : | # |
The additional tests look good. I think the story test is pointless--why does an annonymous user need to read when a license expires. Is there an action he needs to take. I think the browser tests should be removed.
| Brad Crittenden (bac) wrote : | # |
The browser test was driven by the bug I was solving -- an anonymous user was unable to see that data and it triggered a login request. Proving the test passed after modifying the permission was useful and I feel a decent safeguard against a future regression.

I Brad.
As I said on IRC. I see a permission change on the model, but a test of the view, which I know has its own permission settings. I expected to see a test of the model permissions, perhaps check_permissio n('zope. Public' , subscription).