Comment 1 for bug 377579

Revision history for this message
Curtis Hovey (sinzui) wrote : Re: please expose IPerson.inTeam via launchpad REST API

I must abandon this. IPerson.inTeam is a privileged method and making work for external API is very difficult.

I recommend anyone working on this in the future to review the rejected work first:
https://code.edge.launchpad.net/~sinzui/launchpad/in-team/+merge/6894

I propose that instead of exposing inTeam, a new API-safe method be added (isInTeam()). The method could use the is_visible_by_user construct as a guard that calls the real inTeam() method.