Changeset 12932 for trunk/sources
- Timestamp:
- 09/02/15 14:28:46 (9 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Services.Access/3.3/Interfaces/IUserManager.cs
r12012 r12932 30 30 MembershipUser GetUserByName(string username); 31 31 MembershipUser GetUserById(Guid userId); 32 string GetUserNameById(Guid userId); 32 33 bool VerifyUser(Guid userId, List<Guid> allowedUserGroups); 33 34 } -
trunk/sources/HeuristicLab.Services.Access/3.3/UserManager.cs
r12012 r12932 42 42 public MembershipUser GetUserById(Guid userId) { 43 43 return Membership.GetUser(userId); 44 } 45 46 public string GetUserNameById(Guid userId) { 47 var user = GetUserById(userId); 48 if (user != null) { 49 return user.UserName; 50 } else { 51 return userId.ToString(); 52 } 53 44 54 } 45 55 -
trunk/sources/HeuristicLab.Services.Hive/3.3/HiveService.cs
r12926 r12932 311 311 job.FinishedCount = statistics.FinishedCount; 312 312 } 313 job.OwnerUsername = UserManager.GetUser ById(job.OwnerUserId).UserName;313 job.OwnerUsername = UserManager.GetUserNameById(job.OwnerUserId); 314 314 if (currentUserId == job.OwnerUserId) { 315 315 job.Permission = Permission.Full; … … 355 355 job.FinishedCount = statistic.FinishedCount; 356 356 } 357 job.OwnerUsername = UserManager.GetUser ById(job.OwnerUserId).UserName;357 job.OwnerUsername = UserManager.GetUserNameById(job.OwnerUserId); 358 358 if (currentUserId == job.OwnerUserId) { 359 359 job.Permission = Permission.Full; -
trunk/sources/HeuristicLab.Services.WebApp.Status/3.3/WebApi/DataController.cs
r12913 r12932 62 62 User = new DT.User { 63 63 Id = uts.UserId.ToString(), 64 Name = ServiceLocator.Instance.UserManager.GetUser ById(uts.UserId).UserName64 Name = ServiceLocator.Instance.UserManager.GetUserNameById(uts.UserId) 65 65 }, 66 66 CalculatingTasks = uts.CalculatingTasks,
Note: See TracChangeset
for help on using the changeset viewer.