aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
diff options
context:
space:
mode:
authorMelanie Thielker2008-09-22 12:52:56 +0000
committerMelanie Thielker2008-09-22 12:52:56 +0000
commitd7a98925ce5693f28ef48e4228680f3a7aba12af (patch)
tree2e20488ce767f98b586593b434d21e0b9e398d27 /OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
parentcleanups in inventory REST code. also, disables digest authentications (diff)
downloadopensim-SC_OLD-d7a98925ce5693f28ef48e4228680f3a7aba12af.zip
opensim-SC_OLD-d7a98925ce5693f28ef48e4228680f3a7aba12af.tar.gz
opensim-SC_OLD-d7a98925ce5693f28ef48e4228680f3a7aba12af.tar.bz2
opensim-SC_OLD-d7a98925ce5693f28ef48e4228680f3a7aba12af.tar.xz
Create CanEditObjectInventory to preserve the ability
to have different permissions on inventory and object edits. This may be needed by the viewer on public grids
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
index 678d707..f8d041a 100644
--- a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
@@ -343,6 +343,33 @@ namespace OpenSim.Region.Environment.Scenes
343 return true; 343 return true;
344 } 344 }
345 345
346 public delegate bool CanEditObjectInventory(UUID objectID, UUID editorID, Scene scene);
347 private List<CanEditObjectInventory> CanEditObjectInventoryCheckFunctions = new List<CanEditObjectInventory>();
348
349 public void addCheckEditObjectInventory(CanEditObjectInventory delegateFunc)
350 {
351 if (!CanEditObjectInventoryCheckFunctions.Contains(delegateFunc))
352 CanEditObjectInventoryCheckFunctions.Add(delegateFunc);
353 }
354
355 public void removeCheckEditObjectInventory(CanEditObjectInventory delegateFunc)
356 {
357 if (CanEditObjectInventoryCheckFunctions.Contains(delegateFunc))
358 CanEditObjectInventoryCheckFunctions.Remove(delegateFunc);
359 }
360
361 public bool ExternalChecksCanEditObjectInventory(UUID objectID, UUID editorID)
362 {
363 foreach (CanEditObjectInventory check in CanEditObjectInventoryCheckFunctions)
364 {
365 if (check(objectID, editorID, m_scene) == false)
366 {
367 return false;
368 }
369 }
370 return true;
371 }
372
346 #endregion 373 #endregion
347 374
348 #region MOVE OBJECT 375 #region MOVE OBJECT