Merge lp:~lifeless/launchpad/bug-227494 into lp:launchpad
Proposed by
Robert Collins
Status: | Merged |
---|---|
Approved by: | Robert Collins |
Approved revision: | no longer in the source branch. |
Merged at revision: | 13141 |
Proposed branch: | lp:~lifeless/launchpad/bug-227494 |
Merge into: | lp:launchpad |
Diff against target: |
99 lines (+25/-18) 4 files modified
lib/lp/registry/doc/teammembership-email-notification.txt (+5/-2) lib/lp/registry/doc/teammembership.txt (+18/-3) lib/lp/registry/interfaces/person.py (+1/-1) lib/lp/registry/model/person.py (+1/-12) |
To merge this branch: | bzr merge lp:~lifeless/launchpad/bug-227494 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Review via email: mp+62943@code.launchpad.net |
Commit message
Make perosn.inTeam(foo) and foo.members agree even for team owners.
Description of the change
Per the attached bug we currently have an awkward situation where if you ask 'is teamX.owner in the list of members of team X' and 'is teamX.owner a member of team X' you get different answers.
This exhibits itself as team owners being able to do anything the team can do even if they are not in the team and not shown as the team in the web UI.
This small patch corrects that. It leaves team owners as *administrators* of the team they own, because thats much less confusing.
To post a comment you must log in.
login_person in the middle of the test seems a bit arbitrary. Could you do it earlier? I also worry that it may invalidate more tests, as you only changed it because one case depended on the logged in user.