Merge lp:~michael.nelson/launchpad/530180-partner-permissions into lp:launchpad
Status: | Merged |
---|---|
Approved by: | Michael Nelson |
Approved revision: | no longer in the source branch. |
Merged at revision: | not available |
Proposed branch: | lp:~michael.nelson/launchpad/530180-partner-permissions |
Merge into: | lp:launchpad |
Diff against target: |
473 lines (+257/-51) 8 files modified
lib/canonical/launchpad/security.py (+2/-1) lib/lp/soyuz/browser/queue.py (+1/-1) lib/lp/soyuz/browser/tests/test_queue.py (+191/-0) lib/lp/soyuz/doc/archivepermission.txt (+3/-2) lib/lp/soyuz/interfaces/archivepermission.py (+2/-1) lib/lp/soyuz/model/archivepermission.py (+12/-7) lib/lp/soyuz/stories/soyuz/xx-queue-pages.txt (+42/-35) lib/lp/soyuz/tests/test_publishing.py (+4/-4) |
To merge this branch: | bzr merge lp:~michael.nelson/launchpad/530180-partner-permissions |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Graham Binns (community) | code | Approve | |
Review via email: mp+20947@code.launchpad.net |
Commit message
If a person has permission to administer the queue page for one of the main archives then the view will allow them to post (while still checking individual queue items).
Description of the change
Summary
=======
This branch ensures that if a person has permission to administer the queue for one of the main archives for a distro, then they the /distro/
Previously the security adapter checked only for permissions on the primary archive. The provided unit test show that now it is possible to have permission for the partner archive only, and be able to post to the view.
Note: the view still checks the permission on each individual item, also shown in the new unit tests.
To test:
bin/test -vv -t doc/archiveperm
The tests were originally written to demonstrate bug 530180, but as identified there, they actually showed that the original problem on the bug was related to incorrect permissions.
Hi Michael,
You need to change the copyright notice in your unit test to read 2010 instead of 2009 (and if you'd do the templates as well I'd be grateful).
Other than that this branch looks fine. r=me.