- Timestamp:
- 12/10/08 15:00:52 (16 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Contracts/ApplicationConstants.cs
r945 r947 20 20 public static string RESPONSE_USERROLE_GET_ALL_USERGROUPS = "UserRole.AllUserGroupsReturned"; 21 21 public static string RESPONSE_USERROLE_ID_MUST_NOT_BE_SET = "UserRole.IdMustNotBeSet"; 22 public static string RESPONSE_USERROLE_USERGROUP_ADDED_TO_USERGROUP = "UserRole.UserGroupAddedToUserGroup"; 22 23 23 24 public static string RESPONSE_CLIENT_GET_ALL_CLIENTS = "Client.GetAllClients"; … … 37 38 public static string RESPONSE_COMMUNICATOR_LOGIN_SUCCESS = "Communicator.LoginSuccess"; 38 39 public static string RESPONSE_COMMUNICATOR_LOGOUT_CLIENT_NOT_REGISTERED = "Communicator.LogoutClientNotRegistered"; 39 public static string RESPONSE_COMMUNICATOR_LOGOUT_SUCCESS = " Logout.Success";40 public static string RESPONSE_COMMUNICATOR_LOGOUT_SUCCESS = "Communicator.LogoutSuccess"; 40 41 public static string RESPONSE_COMMUNICATOR_NO_JOBS_LEFT = "Communicator.NoJobsLeft"; 41 42 -
trunk/sources/HeuristicLab.Hive.Contracts/HiveServerMessages.resx
r942 r947 142 142 <value>You where logged out successfully. Good bye</value> 143 143 </data> 144 <data name=" Logout.UserAllreadyOnline" xml:space="preserve">144 <data name="Communicator.LogoutUserAllreadyOnline" xml:space="preserve"> 145 145 <value>A User with this GUID is allready logged in</value> 146 146 </data> -
trunk/sources/HeuristicLab.Hive.Server.Core/UserRoleManager.cs
r945 r947 134 134 Response response = new Response(); 135 135 136 UserGroup userGroup = userGroupAdapter.GetUserGroupById(groupId); 137 UserGroup userGroupToAdd = userGroupAdapter.GetUserGroupById(groupToAddId); 138 139 if (userGroup == null || userGroupToAdd == null) { 140 response.Success = false; 141 response.StatusMessage = ApplicationConstants.RESPONSE_USERROLE_USERGROUP_DOESNT_EXIST; 142 return response; 143 } 144 userGroup.Members.Add(userGroupToAdd); 145 response.Success = true; 146 response.StatusMessage = ApplicationConstants.RESPONSE_USERROLE_USERGROUP_ADDED_TO_USERGROUP; 147 136 148 return response; 137 149 }
Note: See TracChangeset
for help on using the changeset viewer.