← Back to team overview

launchpad-dev team mailing list archive

Re: Exposing newCodeImport

 

On Mon, 29 Mar 2010 11:02:53 +1300, Michael Hudson <michael.hudson@xxxxxxxxxxxxx> wrote:
> No, but there's a vocabulary for "IPersons that the logged in user is a 
> member of" -- UserTeamsParticipationPlusSelfVocabulary -- and that's the 
> same thing here.

Great.

> > I was assuming I would need to add some sort of manual check?
> 
> Not really.
> 
> > For these things is checking membership the right thing, or is there
> > some sort of permission check so that e.g. admins can set anyone
> > as the owner?
> 
> I thought the vocabulary did this, but it seems that it's not, it's done 
> in the +edit form setup code (I guess because the widgets are different 
> depending on whether the user is an admin or not).

I'll start by using the vocabulary and writing a few tests for the
simple cases. Once we have that then we can look at what is required for
the special cases.

Thanks,

James



References