diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs b/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs index daa0728..c33168c 100644 --- a/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs +++ b/OpenSim/Addons/Groups/Hypergrid/GroupsServiceHGConnectorModule.cs | |||
@@ -254,7 +254,10 @@ namespace OpenSim.Groups | |||
254 | { | 254 | { |
255 | string url = string.Empty, gname = string.Empty; | 255 | string url = string.Empty, gname = string.Empty; |
256 | if (IsLocal(GroupID, out url, out gname)) | 256 | if (IsLocal(GroupID, out url, out gname)) |
257 | return m_LocalGroupsConnector.GetGroupMembers(AgentUUI(RequestingAgentID), GroupID); | 257 | { |
258 | string agentID = AgentUUI(RequestingAgentID); | ||
259 | return m_LocalGroupsConnector.GetGroupMembers(agentID, GroupID); | ||
260 | } | ||
258 | else if (!string.IsNullOrEmpty(url)) | 261 | else if (!string.IsNullOrEmpty(url)) |
259 | { | 262 | { |
260 | ExtendedGroupMembershipData membership = m_LocalGroupsConnector.GetAgentGroupMembership(RequestingAgentID, RequestingAgentID, GroupID); | 263 | ExtendedGroupMembershipData membership = m_LocalGroupsConnector.GetAgentGroupMembership(RequestingAgentID, RequestingAgentID, GroupID); |
@@ -396,17 +399,21 @@ namespace OpenSim.Groups | |||
396 | 399 | ||
397 | if (success) | 400 | if (success) |
398 | { | 401 | { |
402 | // Here we always return true. The user has been added to the local group, | ||
403 | // independent of whether the remote operation succeeds or not | ||
399 | url = m_UserManagement.GetUserServerURL(uid, "GroupsServerURI"); | 404 | url = m_UserManagement.GetUserServerURL(uid, "GroupsServerURI"); |
400 | if (url == string.Empty) | 405 | if (url == string.Empty) |
401 | { | 406 | { |
402 | reason = "User doesn't have a groups server"; | 407 | reason = "You don't have have an accessible groups server in your home world. You membership to this group in only within this grid."; |
403 | return false; | 408 | return true; |
404 | } | 409 | } |
405 | 410 | ||
406 | GroupsServiceHGConnector c = GetConnector(url); | 411 | GroupsServiceHGConnector c = GetConnector(url); |
407 | if (c != null) | 412 | if (c != null) |
408 | return c.CreateProxy(AgentUUI(RequestingAgentID), AgentID, token, GroupID, m_LocalGroupsServiceLocation, name, out reason); | 413 | c.CreateProxy(AgentUUI(RequestingAgentID), AgentID, token, GroupID, m_LocalGroupsServiceLocation, name, out reason); |
414 | return true; | ||
409 | } | 415 | } |
416 | return false; | ||
410 | } | 417 | } |
411 | } | 418 | } |
412 | else if (m_UserManagement.IsLocalGridUser(uid)) // local user | 419 | else if (m_UserManagement.IsLocalGridUser(uid)) // local user |