diff options
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Scene.Inventory.cs | 16 |
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 |