Fudge the group join permissions for god user in god mode. Allows to join

every group without an invite.
avinationmerge
Melanie 2011-03-23 00:05:27 +01:00
parent 78a7c6cace
commit bbbcb45398
1 changed files with 14 additions and 0 deletions

View File

@ -9998,6 +9998,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
groupProfileReply.GroupData.MaturePublish = d.MaturePublish; groupProfileReply.GroupData.MaturePublish = d.MaturePublish;
groupProfileReply.GroupData.OwnerRole = d.OwnerRole; groupProfileReply.GroupData.OwnerRole = d.OwnerRole;
Scene scene = (Scene)m_scene;
if (scene.Permissions.IsGod(sender.AgentId) && (!sender.IsGroupMember(groupProfileRequest.GroupData.GroupID)))
{
ScenePresence p;
if (scene.TryGetScenePresence(sender.AgentId, out p))
{
if (p.GodLevel >= 200)
{
groupProfileReply.GroupData.OpenEnrollment = true;
groupProfileReply.GroupData.MembershipFee = 0;
}
}
}
OutPacket(groupProfileReply, ThrottleOutPacketType.Task); OutPacket(groupProfileReply, ThrottleOutPacketType.Task);
} }
return true; return true;