aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
authorMelanie2011-03-23 00:05:27 +0100
committerMelanie2011-03-23 00:05:27 +0100
commitbbbcb453989625587b4c5ff00b50480d5a524e2e (patch)
treeab885368af55b1a3df42fee71e624760a803783e /OpenSim/Region/ClientStack
parentRemove the forced landmark and home poermissions because they are now in the (diff)
downloadopensim-SC_OLD-bbbcb453989625587b4c5ff00b50480d5a524e2e.zip
opensim-SC_OLD-bbbcb453989625587b4c5ff00b50480d5a524e2e.tar.gz
opensim-SC_OLD-bbbcb453989625587b4c5ff00b50480d5a524e2e.tar.bz2
opensim-SC_OLD-bbbcb453989625587b4c5ff00b50480d5a524e2e.tar.xz
Fudge the group join permissions for god user in god mode. Allows to join
every group without an invite.
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 3972ec9..e91d37f 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -9998,6 +9998,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
9998 groupProfileReply.GroupData.MaturePublish = d.MaturePublish; 9998 groupProfileReply.GroupData.MaturePublish = d.MaturePublish;
9999 groupProfileReply.GroupData.OwnerRole = d.OwnerRole; 9999 groupProfileReply.GroupData.OwnerRole = d.OwnerRole;
10000 10000
10001 Scene scene = (Scene)m_scene;
10002 if (scene.Permissions.IsGod(sender.AgentId) && (!sender.IsGroupMember(groupProfileRequest.GroupData.GroupID)))
10003 {
10004 ScenePresence p;
10005 if (scene.TryGetScenePresence(sender.AgentId, out p))
10006 {
10007 if (p.GodLevel >= 200)
10008 {
10009 groupProfileReply.GroupData.OpenEnrollment = true;
10010 groupProfileReply.GroupData.MembershipFee = 0;
10011 }
10012 }
10013 }
10014
10001 OutPacket(groupProfileReply, ThrottleOutPacketType.Task); 10015 OutPacket(groupProfileReply, ThrottleOutPacketType.Task);
10002 } 10016 }
10003 return true; 10017 return true;