a few minor formatting tweaks

bulletsim
Justin Clark-Casey (justincc) 2011-06-01 20:55:03 +01:00
parent c43ad8a0e7
commit a3e0895f12
1 changed files with 4 additions and 3 deletions

View File

@ -1234,15 +1234,15 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
// cScene and property accessor 'isGod' are in support of the opertions to bypass 'hidden' group attributes for // cScene and property accessor 'isGod' are in support of the opertions to bypass 'hidden' group attributes for
// those with a GodLike aspect. // those with a GodLike aspect.
Scene cScene = (Scene) requestingClient.Scene; Scene cScene = (Scene)requestingClient.Scene;
bool isGod = cScene.Permissions.IsGod(requestingClient.AgentId); bool isGod = cScene.Permissions.IsGod(requestingClient.AgentId);
if (isGod) { if (isGod)
{
membershipArray = membershipData.ToArray(); membershipArray = membershipData.ToArray();
} }
else else
{ {
if (requestingClient.AgentId != dataForAgentID) if (requestingClient.AgentId != dataForAgentID)
{ {
Predicate<GroupMembershipData> showInProfile = delegate(GroupMembershipData membership) Predicate<GroupMembershipData> showInProfile = delegate(GroupMembershipData membership)
@ -1257,6 +1257,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
membershipArray = membershipData.ToArray(); 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);