Merge lp:~stevenk/launchpad/use-userHasPriviledges into lp:launchpad
Proposed by
Steve Kowalik
Status: | Merged |
---|---|
Approved by: | William Grant |
Approved revision: | no longer in the source branch. |
Merged at revision: | 14378 |
Proposed branch: | lp:~stevenk/launchpad/use-userHasPriviledges |
Merge into: | lp:launchpad |
Diff against target: |
379 lines (+115/-42) 12 files modified
lib/lp/bugs/browser/bugtarget.py (+14/-17) lib/lp/bugs/browser/tests/bugtarget-filebug-views.txt (+16/-11) lib/lp/bugs/model/bugtask.py (+12/-8) lib/lp/bugs/model/tests/test_bugtask.py (+32/-2) lib/lp/bugs/stories/bug-release-management/xx-bug-release-management.txt (+1/-1) lib/lp/registry/configure.zcml (+1/-0) lib/lp/registry/interfaces/distributionsourcepackage.py (+4/-1) lib/lp/registry/interfaces/sourcepackage.py (+6/-1) lib/lp/registry/model/distributionsourcepackage.py (+8/-1) lib/lp/registry/model/sourcepackage.py (+5/-0) lib/lp/registry/tests/test_distributionsourcepackage.py (+8/-0) lib/lp/registry/tests/test_sourcepackage.py (+8/-0) |
To merge this branch: | bzr merge lp:~stevenk/launchpad/use-userHasPriviledges |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant (community) | code | Approve | |
Review via email:
|
Commit message
[r=wgrant][bug=885692] Add userHasPrivileges for IBugTarget contexts so that more than the bug supervisor can set the extra fields.
Description of the change
Write a class method on BugTask that checks the context (an IBugTarget) that a bug is being filed on. This allows us to extend the special rules to users such as the pillar owner or drivers.
Sadly, this branch is misnamed, and the method does not make use of IBugTask.
To post a comment you must log in.