From 0afbb6cb3e99aea6291cf715c88e8187d641b964 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Fri, 28 Nov 2008 04:31:39 +0000 Subject: Omit parcel checks for attachments. --- OpenSim/Region/Environment/Scenes/Scene.cs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 29f1302..ec08635 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -2156,14 +2156,11 @@ namespace OpenSim.Region.Environment.Scenes SceneObjectPart RootPrim = GetSceneObjectPart(primID); if (RootPrim != null) { - if (m_regInfo.EstateSettings.IsBanned(RootPrim.OwnerID) || - (!Permissions.CanObjectEntry(RootPrim.UUID, true, RootPrim.AbsolutePosition))) + if (m_regInfo.EstateSettings.IsBanned(RootPrim.OwnerID)) { SceneObjectGroup grp = RootPrim.ParentGroup; if (grp != null) - { DeleteSceneObject(grp, false); - } m_log.Info("[INTERREGION]: Denied prim crossing for banned avatar"); @@ -2172,6 +2169,19 @@ namespace OpenSim.Region.Environment.Scenes if (RootPrim.Shape.PCode == (byte)PCode.Prim) { SceneObjectGroup grp = RootPrim.ParentGroup; + if((RootPrim.Shape.State == 0) && + (!Permissions.CanObjectEntry(RootPrim.UUID, + true, RootPrim.AbsolutePosition))) + { + if (grp != null) + { + DeleteSceneObject(grp, false); + } + + m_log.Info("[INTERREGION]: Denied prim crossing because of parcel settings"); + + return false; + } if (grp != null) { if (RootPrim.Shape.State != 0) -- cgit v1.1