revert the prematurely included groups patch, yet again
parent
929bdba346
commit
8bacf56e46
|
@ -1231,36 +1231,20 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
List<GroupMembershipData> membershipData = m_groupData.GetAgentGroupMemberships(requestingClient.AgentId, dataForAgentID);
|
List<GroupMembershipData> membershipData = m_groupData.GetAgentGroupMemberships(requestingClient.AgentId, dataForAgentID);
|
||||||
GroupMembershipData[] membershipArray;
|
GroupMembershipData[] membershipArray;
|
||||||
|
|
||||||
// c_scene and property accessor 'is_god' are in support of the opertions to bypass 'hidden' group attributes for
|
if (requestingClient.AgentId != dataForAgentID)
|
||||||
// those with a GodLike aspect.
|
{
|
||||||
Scene c_scene = (Scene) requestingClient.Scene;
|
|
||||||
bool is_god = c_scene.Permissions.IsGod(requestingClient.AgentId);
|
|
||||||
|
|
||||||
if(is_god) {
|
|
||||||
Predicate<GroupMembershipData> showInProfile = delegate(GroupMembershipData membership)
|
Predicate<GroupMembershipData> showInProfile = delegate(GroupMembershipData membership)
|
||||||
{
|
{
|
||||||
return membership.ListInProfile;
|
return membership.ListInProfile;
|
||||||
};
|
};
|
||||||
|
|
||||||
membershipArray = membershipData.ToArray();
|
membershipArray = membershipData.FindAll(showInProfile).ToArray();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
membershipArray = membershipData.ToArray();
|
||||||
if (requestingClient.AgentId != dataForAgentID)
|
|
||||||
{
|
|
||||||
Predicate<GroupMembershipData> showInProfile = delegate(GroupMembershipData membership)
|
|
||||||
{
|
|
||||||
return membership.ListInProfile;
|
|
||||||
};
|
|
||||||
|
|
||||||
membershipArray = membershipData.FindAll(showInProfile).ToArray();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
membershipArray = membershipData.ToArray();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_debugEnabled)
|
if (m_debugEnabled)
|
||||||
{
|
{
|
||||||
m_log.InfoFormat("[GROUPS]: Get group membership information for {0} requested by {1}", dataForAgentID, requestingClient.AgentId);
|
m_log.InfoFormat("[GROUPS]: Get group membership information for {0} requested by {1}", dataForAgentID, requestingClient.AgentId);
|
||||||
|
@ -1273,7 +1257,6 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
|
||||||
return membershipArray;
|
return membershipArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void SendAgentDataUpdate(IClientAPI remoteClient, UUID dataForAgentID, UUID activeGroupID, string activeGroupName, ulong activeGroupPowers, string activeGroupTitle)
|
private void SendAgentDataUpdate(IClientAPI remoteClient, UUID dataForAgentID, UUID activeGroupID, string activeGroupName, ulong activeGroupPowers, string activeGroupTitle)
|
||||||
{
|
{
|
||||||
if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
if (m_debugEnabled) m_log.DebugFormat("[GROUPS]: {0} called", System.Reflection.MethodBase.GetCurrentMethod().Name);
|
||||||
|
|
Loading…
Reference in New Issue