aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services/InventoryService
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-05-18 00:23:35 +0100
committerJustin Clark-Casey (justincc)2011-05-18 00:23:35 +0100
commit6dcc87b1adeb71a9c83cafa95a95a80c50b62092 (patch)
treef6a395bb05f3f5f3bb0bf05cd08e1d66aba7fcac /OpenSim/Services/InventoryService
parentcorrect small mistake in "delete object name <name>" usage summary (diff)
downloadopensim-SC_OLD-6dcc87b1adeb71a9c83cafa95a95a80c50b62092.zip
opensim-SC_OLD-6dcc87b1adeb71a9c83cafa95a95a80c50b62092.tar.gz
opensim-SC_OLD-6dcc87b1adeb71a9c83cafa95a95a80c50b62092.tar.bz2
opensim-SC_OLD-6dcc87b1adeb71a9c83cafa95a95a80c50b62092.tar.xz
Accidentally committed too early
Revert "Allow item links to be deleted even when other deletes and purges are disabled." This reverts commit 491279f99afc65860d44765ee7829c7dd5e4e38e.
Diffstat (limited to 'OpenSim/Services/InventoryService')
-rw-r--r--OpenSim/Services/InventoryService/XInventoryService.cs30
1 files changed, 6 insertions, 24 deletions
diff --git a/OpenSim/Services/InventoryService/XInventoryService.cs b/OpenSim/Services/InventoryService/XInventoryService.cs
index a094a02..0af35c8 100644
--- a/OpenSim/Services/InventoryService/XInventoryService.cs
+++ b/OpenSim/Services/InventoryService/XInventoryService.cs
@@ -411,30 +411,12 @@ namespace OpenSim.Services.InventoryService
411 public virtual bool DeleteItems(UUID principalID, List<UUID> itemIDs) 411 public virtual bool DeleteItems(UUID principalID, List<UUID> itemIDs)
412 { 412 {
413 if (!m_AllowDelete) 413 if (!m_AllowDelete)
414 { 414 return false;
415 // We must still allow links and links to folders to be deleted, otherwise they will build up 415
416 // in the player's inventory until they can no longer log in. Deletions of links due to code bugs or 416 // Just use the ID... *facepalms*
417 // similar is inconvenient but on a par with accidental movement of items. The original item is never 417 //
418 // touched. 418 foreach (UUID id in itemIDs)
419 foreach (UUID id in itemIDs) 419 m_Database.DeleteItems("inventoryID", id.ToString());
420 {
421 if (!m_Database.DeleteItems(
422 new string[] { "inventoryID", "assetType" },
423 new string[] { id.ToString(), ((sbyte)AssetType.Link).ToString() }));
424 {
425 m_Database.DeleteItems(
426 new string[] { "inventoryID", "assetType" },
427 new string[] { id.ToString(), ((sbyte)AssetType.LinkFolder).ToString() });
428 }
429 }
430 }
431 else
432 {
433 // Just use the ID... *facepalms*
434 //
435 foreach (UUID id in itemIDs)
436 m_Database.DeleteItems("inventoryID", id.ToString());
437 }
438 420
439 return true; 421 return true;
440 } 422 }