Fudge the group join permissions for god user in god mode. Allows to join
every group without an invite.avinationmerge
parent
78a7c6cace
commit
bbbcb45398
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue