diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs index 401a238..9fb8aa5 100644 --- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs +++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveWriteRequest.cs | |||
@@ -57,7 +57,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
57 | public bool SaveAssets { get; set; } | 57 | public bool SaveAssets { get; set; } |
58 | 58 | ||
59 | /// <summary> | 59 | /// <summary> |
60 | /// Determine whether this archive will filter content based on inventory permissions. Default is false | 60 | /// Determines which items will be included in the archive, according to their permissions. |
61 | /// Default is null, meaning no permission checks. | ||
61 | /// </summary> | 62 | /// </summary> |
62 | public string FilterContent { get; set; } | 63 | public string FilterContent { get; set; } |
63 | 64 | ||
@@ -139,7 +140,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
139 | m_assetGatherer = new UuidGatherer(m_scene.AssetService); | 140 | m_assetGatherer = new UuidGatherer(m_scene.AssetService); |
140 | 141 | ||
141 | SaveAssets = true; | 142 | SaveAssets = true; |
142 | FilterContent = string.Empty; | 143 | FilterContent = null; |
143 | } | 144 | } |
144 | 145 | ||
145 | protected void ReceivedAllAssets(ICollection<UUID> assetsFoundUuids, ICollection<UUID> assetsNotFoundUuids, bool timedOut) | 146 | protected void ReceivedAllAssets(ICollection<UUID> assetsFoundUuids, ICollection<UUID> assetsNotFoundUuids, bool timedOut) |
@@ -287,7 +288,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
287 | /// <returns>Whether the user is allowed to export the object to an IAR</returns> | 288 | /// <returns>Whether the user is allowed to export the object to an IAR</returns> |
288 | private bool CanUserArchiveObject(UUID UserID, InventoryItemBase InvItem) | 289 | private bool CanUserArchiveObject(UUID UserID, InventoryItemBase InvItem) |
289 | { | 290 | { |
290 | if (FilterContent == string.Empty) | 291 | if (FilterContent == null) |
291 | return true;// Default To Allow Export | 292 | return true;// Default To Allow Export |
292 | 293 | ||
293 | bool permitted = true; | 294 | bool permitted = true; |
@@ -317,10 +318,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver | |||
317 | SaveAssets = false; | 318 | SaveAssets = false; |
318 | 319 | ||
319 | // Set Permission filter if flag is set | 320 | // Set Permission filter if flag is set |
320 | if (options.ContainsKey("perm")) | 321 | if (options.ContainsKey("checkPermissions")) |
321 | { | 322 | { |
322 | Object temp; | 323 | Object temp; |
323 | if (options.TryGetValue("perm", out temp)) | 324 | if (options.TryGetValue("checkPermissions", out temp)) |
324 | FilterContent = temp.ToString().ToUpper(); | 325 | FilterContent = temp.ToString().ToUpper(); |
325 | } | 326 | } |
326 | 327 | ||