Ignore:
Timestamp:
10/05/11 11:42:12 (8 years ago)
Author:
pcosquer
Message:

When a new object is created, sets the sponsor as the signer if
the sponsor is not the company

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/controllers/user.py

    r357 r375  
    238238            pass 
    239239        password = generate_password() 
    240         new_user.is_contributor = is_contributor 
    241240        new_user.set_password(password) 
    242241        new_user.save() 
     242        new_user.get_profile().is_contributor = is_contributor 
     243        new_user.get_profile().save() 
    243244        link = models.DelegationLink(delegator=self._user, delegatee=new_user, 
    244245                role=models.ROLE_SPONSOR) 
Note: See TracChangeset for help on using the changeset viewer.