Merge lp:~thumper/launchpad/branch-push-permission into lp:launchpad
Proposed by
Tim Penhey
on 2010-02-22
| Status: | Merged |
|---|---|
| Approved by: | Michael Hudson-Doyle on 2010-02-22 |
| Approved revision: | not available |
| Merged at revision: | 10360 |
| Proposed branch: | lp:~thumper/launchpad/branch-push-permission |
| Merge into: | lp:launchpad |
| Diff against target: |
67 lines (+34/-3) 2 files modified
lib/lp/code/browser/branch.py (+5/-3) lib/lp/code/browser/tests/test_branch.py (+29/-0) |
| To merge this branch: | bzr merge lp:~thumper/launchpad/branch-push-permission |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Michael Hudson-Doyle | 2010-02-22 | Approve on 2010-02-22 | |
|
Review via email:
|
|||
Commit Message
Use launchpad.Edit to determine on the branch-index.pt template whether the user can upload to the branch.
To post a comment you must log in.
| Tim Penhey (thumper) wrote : | # |
| Michael Hudson-Doyle (mwhudson) wrote : | # |
Maybe a test for whether an admin can upload would make sense?
Otherwise, nice.
review:
Approve

Change the code that controls the "bzr push" display on the branch page to use the launchpad.Edit permission rather than checking ownership of the branch.