- Timestamp:
- 06/26/10 11:58:16 (15 years ago)
- Location:
- branches/HeuristicLab.Services.Authentication Prototype/Service/Provider
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabMembershipProvider.cs
r3961 r3962 185 185 // optionally delete related data 186 186 if (deleteAllRelatedData) { 187 db.HeuristicLabUserRole.DeleteAllOnSubmit<HeuristicLabUserRole>(u.HeuristicLabUserRole );187 db.HeuristicLabUserRole.DeleteAllOnSubmit<HeuristicLabUserRole>(u.HeuristicLabUserRoles); 188 188 } 189 189 -
branches/HeuristicLab.Services.Authentication Prototype/Service/Provider/HeuristicLabRoleProvider.cs
r3960 r3962 61 61 if (roleName != null && db.HeuristicLabRole.Count(r => r.RoleName == roleName) == 1) { 62 62 HeuristicLabRole role = db.HeuristicLabRole.Single(r => r.RoleName == roleName); 63 foreach (HeuristicLabUserRole userRole in role.HeuristicLabUserRole ) {63 foreach (HeuristicLabUserRole userRole in role.HeuristicLabUserRoles) { 64 64 if (userRole.HeuristicLabUser.UserName.Contains(usernameToMatch)) { 65 65 returnValue.Add(userRole.HeuristicLabUser.UserName); … … 88 88 89 89 Persistence.HeuristicLabUser user = context.HeuristicLabUsers.Single(u => u.UserName == username); 90 foreach (Persistence.HeuristicLabUserRole userRole in user.HeuristicLabUserRole ) {90 foreach (Persistence.HeuristicLabUserRole userRole in user.HeuristicLabUserRoles) { 91 91 roleList.Add(userRole.HeuristicLabRole.RoleName); 92 92 }
Note: See TracChangeset
for help on using the changeset viewer.