From 4bd38fc65a77826c5646c3154d087171c290cbed Mon Sep 17 00:00:00 2001
From: Teravus Ovares
Date: Thu, 29 Nov 2007 15:24:31 +0000
Subject: * Thanks to _SomeOne_, Server side permissions on object editing. Be
aware, that if you're editing an object on your client that you're not
allowed to, it'll appear that it's moving to you, but won't actually be
moving on the sim.
---
OpenSim/Region/Environment/Scenes/InnerScene.cs | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/InnerScene.cs')
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs
index c1acde4..0cb17c0 100644
--- a/OpenSim/Region/Environment/Scenes/InnerScene.cs
+++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs
@@ -589,11 +589,14 @@ namespace OpenSim.Region.Environment.Scenes
group.SetPartDescription(description, primLocalID);
}
- public void UpdateExtraParam(uint primLocalID, ushort type, bool inUse, byte[] data)
+ public void UpdateExtraParam(LLUUID agentID, uint primLocalID, ushort type, bool inUse, byte[] data)
{
SceneObjectGroup group = GetGroupByPrim(primLocalID);
- if (group != null)
- group.UpdateExtraParam(primLocalID, type, inUse, data);
+ if (this.m_parentScene.PermissionsMngr.CanEditObject(agentID, group.GetPartsFullID(primLocalID)))
+ {
+ if (group != null)
+ group.UpdateExtraParam(primLocalID, type, inUse, data);
+ }
}
///
@@ -601,11 +604,14 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public void UpdatePrimShape(uint primLocalID, ObjectShapePacket.ObjectDataBlock shapeBlock)
+ public void UpdatePrimShape(LLUUID agentID, uint primLocalID, ObjectShapePacket.ObjectDataBlock shapeBlock)
{
SceneObjectGroup group = GetGroupByPrim(primLocalID);
- if (group != null)
- group.UpdateShape(shapeBlock, primLocalID);
+ if (this.m_parentScene.PermissionsMngr.CanEditObject(agentID, group.GetPartsFullID(primLocalID)))
+ {
+ if (group != null)
+ group.UpdateShape(shapeBlock, primLocalID);
+ }
}
///
@@ -753,3 +759,4 @@ namespace OpenSim.Region.Environment.Scenes
}
}
+
--
cgit v1.1