Ignore:
Timestamp:
13 Feb 2012, 09:10:16 (13 years ago)
Author:
Henrik Bettermann
Message:

Fix role assignment when creating an account.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/authentication.py

    r7321 r7636  
    150150
    151151    def __init__(self, name, password, title=None, description=None,
    152                  email=None, phone=None, user_type=None, roles = []):
     152                 email=None, phone=None, roles = []):
    153153        self.name = name
    154154        if title is None:
    155155            title = name
    156         #if description is None:
    157         #    description = title
    158156        self.title = title
    159157        self.description = description
    160158        self.email = email
    161159        self.phone = phone
    162         self.user_type = user_type
    163160        self.setPassword(password)
    164         #self.setSiteRolesForPrincipal(roles)
     161        self.setSiteRolesForPrincipal(roles)
    165162        # We don't want to share this dict with other accounts
    166163        self._local_roles = dict()
Note: See TracChangeset for help on using the changeset viewer.