aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorTom Grimshaw2010-06-26 12:38:08 -0700
committerTom Grimshaw2010-06-26 12:38:08 -0700
commitbd19cf739a03e255b0bf46021d3fab6ea0148afb (patch)
tree40bb0364f06c120731b9350672a96f358f117c0a /OpenSim/Region
parentReturn objects which are NoCopy instead of just leaving them when cleaning t... (diff)
downloadopensim-SC_OLD-bd19cf739a03e255b0bf46021d3fab6ea0148afb.zip
opensim-SC_OLD-bd19cf739a03e255b0bf46021d3fab6ea0148afb.tar.gz
opensim-SC_OLD-bd19cf739a03e255b0bf46021d3fab6ea0148afb.tar.bz2
opensim-SC_OLD-bd19cf739a03e255b0bf46021d3fab6ea0148afb.tar.xz
Fix a bug with DeRezObjects (check for a null remoteClient)
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs16
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 5e1798b..83fd349 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1591,15 +1591,17 @@ namespace OpenSim.Region.Framework.Scenes
1591 // So that we know the database is upto date, 1591 // So that we know the database is upto date,
1592 // for when deleting the object from it 1592 // for when deleting the object from it
1593 ForceSceneObjectBackup(grp); 1593 ForceSceneObjectBackup(grp);
1594 if (remoteClient != null)
1595 {
1596 if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
1597 permissionToTakeCopy = false;
1598 if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
1599 permissionToTake = false;
1594 1600
1595 if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId)) 1601 if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
1596 permissionToTakeCopy = false; 1602 permissionToDelete = false;
1597 if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
1598 permissionToTake = false;
1599
1600 if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
1601 permissionToDelete = false;
1602 1603
1604 }
1603 } 1605 }
1604 1606
1605 // Handle god perms 1607 // Handle god perms