Merge lp:~julian-edwards/launchpad/p3a-sub-private-teams-bug-597783 into lp:launchpad
Status: | Merged |
---|---|
Merged at revision: | 11067 |
Proposed branch: | lp:~julian-edwards/launchpad/p3a-sub-private-teams-bug-597783 |
Merge into: | lp:launchpad |
Diff against target: |
93 lines (+70/-1) 2 files modified
lib/canonical/launchpad/security.py (+13/-1) lib/lp/soyuz/tests/test_archive_subscriptions.py (+57/-0) |
To merge this branch: | bzr merge lp:~julian-edwards/launchpad/p3a-sub-private-teams-bug-597783 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Henning Eggers (community) | code | Approve | |
Māris Fogels (community) | Approve | ||
Curtis Hovey (community) | code | Approve | |
Review via email: mp+28621@code.launchpad.net |
Description of the change
= Summary =
Subscribers of P3As owned by private teams should be able to see the team
== Proposed fix ==
https:/
Currently a subscriber to a private PPA owned by a private team will get a 403
when they visit their +archivesubscri
still prevents access from seeing that team, but which is required to build a
URL to the repo location in the subscription token.
This branch changes the security adapter to take the subscriptions a user
might have, and allows launchpad.View to the team if it has a PPA and the user
has a subscription.
== Pre-implementation notes ==
Talked to Curtis, we both agreed there's not much else we can do here.
== Implementation details ==
As above.
== Tests ==
bin/test -cvv test_archive_
== Demo and Q/A ==
QA Plan:
* Create a private team
* Give the team a private PPA
* Confirm that Joe User can't see the team, but can see his
+archivesubscri
* Subscribe Joe User to the PPA
* Confirm that Joe User can see the subscription on his +archivesubscri
page
= Launchpad lint =
Checking for conflicts. and issues in doctests and templates.
Running jslint, xmllint, pyflakes, and pylint.
Using normal rules.
Linting changed files:
lib/lp/
lib/canonical
/me grumbles at the stupid person picker
Maris, that's an r-c stamp I need from you please, you already gave me one on Friday for this but I'd like it if you can make it official.
Cheers.