Changeset 7658 for main/waeup.sirp/trunk/src/waeup
- Timestamp:
- 16 Feb 2012, 15:29:13 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/authentication.py
r7636 r7658 180 180 prm = get_principal_role_manager() 181 181 old_roles = self.getSiteRolesForPrincipal() 182 if sorted(old_roles) == sorted(roles): 183 return 182 184 for role in old_roles: 183 185 # Remove old roles, not to be set now... … … 185 187 prm.unsetRoleForPrincipal(role, self.name) 186 188 for role in roles: 187 prm.assignRoleToPrincipal(role, self.name) 189 # Convert role to ASCII string to be in line with the 190 # event handler 191 prm.assignRoleToPrincipal(str(role), self.name) 192 return 188 193 189 194 roles = property(getSiteRolesForPrincipal, setSiteRolesForPrincipal)
Note: See TracChangeset for help on using the changeset viewer.