IPerson.addMember() should not demote admins

Bug #480157 reported by Guilherme Salgado
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Triaged
Low
Unassigned

Bug Description

If you call addMember() passing a person who's already an admin of the team to it, that person will be turned into a regular member.

The test below should pass, but it fails, demostrating the issue.

>>> Person.get(1) in Person.byName('ubuntu-team').adminmembers
True
>>> Person.byName('ubuntu-team').addMember(Person.get(1), Person.get(1))
>>> Person.get(1) in Person.byName('ubuntu-team').adminmembers
True

Revision history for this message
William Grant (wgrant) wrote :

This now affects the AJAX 'Add member' interface, which will silently demote admins. This is probably bad.

Curtis Hovey (sinzui)
tags: added: teams
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: nobody → Aaron Bentley (abentley)
status: Triaged → In Progress
Curtis Hovey (sinzui)
Changed in launchpad:
assignee: Aaron Bentley (abentley) → nobody
status: In Progress → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.