From 037b31f9dbf446ffb770ed465e9c4b46600f43fa Mon Sep 17 00:00:00 2001
From: MW
Date: Sun, 29 Jun 2008 12:33:45 +0000
Subject: patch from mantis #1632, thanks Melanie
---
.../Region/Environment/Scenes/Scene.Inventory.cs | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
(limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs')
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index d134ea3..2b3ddaa 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -1905,7 +1905,7 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public virtual SceneObjectGroup RezObject(TaskInventoryItem item, LLVector3 pos, LLQuaternion rot, LLVector3 vel, int param)
+ public virtual SceneObjectGroup RezObject(SceneObjectPart sourcePart, TaskInventoryItem item, LLVector3 pos, LLQuaternion rot, LLVector3 vel, int param)
{
// Rez object
if (item != null)
@@ -1942,15 +1942,18 @@ namespace OpenSim.Region.Environment.Scenes
if (rootPart.OwnerID != item.OwnerID)
{
- if ((item.OwnerMask & 8) != 0)
+ if (ExternalChecks.ExternalChecksPropagatePermissions())
{
- foreach (SceneObjectPart part in partList)
+ if ((item.OwnerMask & 8) != 0)
{
- part.EveryoneMask = item.EveryoneMask;
- part.NextOwnerMask = item.NextOwnerMask;
+ foreach (SceneObjectPart part in partList)
+ {
+ part.EveryoneMask = item.EveryoneMask;
+ part.NextOwnerMask = item.NextOwnerMask;
+ }
}
+ group.ApplyNextOwnerPermissions();
}
- group.ApplyNextOwnerPermissions();
}
foreach (SceneObjectPart part in partList)
@@ -1977,6 +1980,12 @@ namespace OpenSim.Region.Environment.Scenes
group.Velocity = vel;
group.CreateScriptInstances(param, true);
rootPart.ScheduleFullUpdate();
+
+ if (!ExternalChecks.ExternalChecksBypassPermissions())
+ {
+ if ((item.OwnerMask & (uint)PermissionMask.Copy) == 0)
+ sourcePart.RemoveInventoryItem(item.ItemID);
+ }
return rootPart.ParentGroup;
}
}
--
cgit v1.1