diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
index 8ecea9eca3..87348fc3e0 100644
--- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs
@@ -186,10 +186,10 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
m_scene.ExternalChecks.addCheckCanBuyLand(CanBuyLand); //NOT YET IMPLEMENTED
m_scene.ExternalChecks.addCheckCanCopyObjectInventory(CanCopyObjectInventory); //NOT YET IMPLEMENTED
m_scene.ExternalChecks.addCheckCanDeleteObjectInventory(CanDeleteObjectInventory); //NOT YET IMPLEMENTED
- m_scene.ExternalChecks.addCheckCanCreateAvatarInventory(CanCreateAvatarInventory); //NOT YET IMPLEMENTED
- m_scene.ExternalChecks.addCheckCanCopyAvatarInventory(CanCopyAvatarInventory); //NOT YET IMPLEMENTED
- m_scene.ExternalChecks.addCheckCanEditAvatarInventory(CanEditAvatarInventory); //NOT YET IMPLEMENTED
- m_scene.ExternalChecks.addCheckCanDeleteAvatarInventory(CanDeleteAvatarInventory); //NOT YET IMPLEMENTED
+ m_scene.ExternalChecks.addCheckCanCreateUserInventory(CanCreateUserInventory); //NOT YET IMPLEMENTED
+ m_scene.ExternalChecks.addCheckCanCopyUserInventory(CanCopyUserInventory); //NOT YET IMPLEMENTED
+ m_scene.ExternalChecks.addCheckCanEditUserInventory(CanEditUserInventory); //NOT YET IMPLEMENTED
+ m_scene.ExternalChecks.addCheckCanDeleteUserInventory(CanDeleteUserInventory); //NOT YET IMPLEMENTED
m_scene.ExternalChecks.addCheckCanTeleport(CanTeleport); //NOT YET IMPLEMENTED
//Register Debug Commands
@@ -1244,7 +1244,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
///
///
///
- public bool CanCreateAvatarInventory(int invType, UUID userID)
+ public bool CanCreateUserInventory(int invType, UUID userID)
{
//m_log.Debug("[PERMISSIONS]: CanCreateAvatarInventory called");
@@ -1260,7 +1260,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
///
///
///
- public bool CanCopyAvatarInventory(UUID itemID, UUID userID)
+ public bool CanCopyUserInventory(UUID itemID, UUID userID)
{
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
if (m_bypassPermissions) return m_bypassPermissionsValue;
@@ -1274,7 +1274,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
///
///
///
- public bool CanEditAvatarInventory(UUID itemID, UUID userID)
+ public bool CanEditUserInventory(UUID itemID, UUID userID)
{
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
if (m_bypassPermissions) return m_bypassPermissionsValue;
@@ -1288,7 +1288,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions
///
///
///
- public bool CanDeleteAvatarInventory(UUID itemID, UUID userID)
+ public bool CanDeleteUserInventory(UUID itemID, UUID userID)
{
DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name);
if (m_bypassPermissions) return m_bypassPermissionsValue;
diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index e548f36419..12095e52af 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -761,7 +761,7 @@ namespace OpenSim.Region.Environment.Scenes
{
m_log.DebugFormat("[AGENT INVENTORY]: Received request to create inventory item {0} in folder {1}", name, folderID);
- if (!ExternalChecks.ExternalChecksCanCreateAvatarInventory(invType, remoteClient.AgentId))
+ if (!ExternalChecks.ExternalChecksCanCreateUserInventory(invType, remoteClient.AgentId))
return;
if (transactionID == UUID.Zero)
diff --git a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
index cc627b0c40..0977734c9d 100644
--- a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs
@@ -1164,20 +1164,20 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
- public delegate bool CanCreateAvatarInventory(int invType, UUID userID);
- private List CanCreateAvatarInventoryCheckFunctions
- = new List();
+ public delegate bool CanCreateUserInventory(int invType, UUID userID);
+ private List CanCreateUserInventoryCheckFunctions
+ = new List();
- public void addCheckCanCreateAvatarInventory(CanCreateAvatarInventory delegateFunc)
+ public void addCheckCanCreateUserInventory(CanCreateUserInventory delegateFunc)
{
- if (!CanCreateAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanCreateAvatarInventoryCheckFunctions.Add(delegateFunc);
+ if (!CanCreateUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanCreateUserInventoryCheckFunctions.Add(delegateFunc);
}
- public void removeCheckCanCreateAvatarInventory(CanCreateAvatarInventory delegateFunc)
+ public void removeCheckCanCreateUserInventory(CanCreateUserInventory delegateFunc)
{
- if (CanCreateAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanCreateAvatarInventoryCheckFunctions.Remove(delegateFunc);
+ if (CanCreateUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanCreateUserInventoryCheckFunctions.Remove(delegateFunc);
}
///
@@ -1186,9 +1186,9 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public bool ExternalChecksCanCreateAvatarInventory(int invType, UUID userID)
+ public bool ExternalChecksCanCreateUserInventory(int invType, UUID userID)
{
- foreach (CanCreateAvatarInventory check in CanCreateAvatarInventoryCheckFunctions)
+ foreach (CanCreateUserInventory check in CanCreateUserInventoryCheckFunctions)
{
if (check(invType, userID) == false)
{
@@ -1199,20 +1199,20 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
- public delegate bool CanEditAvatarInventory(UUID itemID, UUID userID);
- private List CanEditAvatarInventoryCheckFunctions
- = new List();
+ public delegate bool CanEditUserInventory(UUID itemID, UUID userID);
+ private List CanEditUserInventoryCheckFunctions
+ = new List();
- public void addCheckCanEditAvatarInventory(CanEditAvatarInventory delegateFunc)
+ public void addCheckCanEditUserInventory(CanEditUserInventory delegateFunc)
{
- if (!CanEditAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanEditAvatarInventoryCheckFunctions.Add(delegateFunc);
+ if (!CanEditUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanEditUserInventoryCheckFunctions.Add(delegateFunc);
}
- public void removeCheckCanEditAvatarInventory(CanEditAvatarInventory delegateFunc)
+ public void removeCheckCanEditUserInventory(CanEditUserInventory delegateFunc)
{
- if (CanEditAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanEditAvatarInventoryCheckFunctions.Remove(delegateFunc);
+ if (CanEditUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanEditUserInventoryCheckFunctions.Remove(delegateFunc);
}
///
@@ -1221,9 +1221,9 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public bool ExternalChecksCanEditAvatarInventory(UUID itemID, UUID userID)
+ public bool ExternalChecksCanEditUserInventory(UUID itemID, UUID userID)
{
- foreach (CanEditAvatarInventory check in CanEditAvatarInventoryCheckFunctions)
+ foreach (CanEditUserInventory check in CanEditUserInventoryCheckFunctions)
{
if (check(itemID, userID) == false)
{
@@ -1234,20 +1234,20 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
- public delegate bool CanCopyAvatarInventory(UUID itemID, UUID userID);
- private List CanCopyAvatarInventoryCheckFunctions
- = new List();
+ public delegate bool CanCopyUserInventory(UUID itemID, UUID userID);
+ private List CanCopyUserInventoryCheckFunctions
+ = new List();
- public void addCheckCanCopyAvatarInventory(CanCopyAvatarInventory delegateFunc)
+ public void addCheckCanCopyUserInventory(CanCopyUserInventory delegateFunc)
{
- if (!CanCopyAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanCopyAvatarInventoryCheckFunctions.Add(delegateFunc);
+ if (!CanCopyUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanCopyUserInventoryCheckFunctions.Add(delegateFunc);
}
- public void removeCheckCanCopyAvatarInventory(CanCopyAvatarInventory delegateFunc)
+ public void removeCheckCanCopyUserInventory(CanCopyUserInventory delegateFunc)
{
- if (CanCopyAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanCopyAvatarInventoryCheckFunctions.Remove(delegateFunc);
+ if (CanCopyUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanCopyUserInventoryCheckFunctions.Remove(delegateFunc);
}
///
@@ -1256,9 +1256,9 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public bool ExternalChecksCanCopyAvatarInventory(UUID itemID, UUID userID)
+ public bool ExternalChecksCanCopyUserInventory(UUID itemID, UUID userID)
{
- foreach (CanCopyAvatarInventory check in CanCopyAvatarInventoryCheckFunctions)
+ foreach (CanCopyUserInventory check in CanCopyUserInventoryCheckFunctions)
{
if (check(itemID, userID) == false)
{
@@ -1269,20 +1269,20 @@ namespace OpenSim.Region.Environment.Scenes
return true;
}
- public delegate bool CanDeleteAvatarInventory(UUID itemID, UUID userID);
- private List CanDeleteAvatarInventoryCheckFunctions
- = new List();
+ public delegate bool CanDeleteUserInventory(UUID itemID, UUID userID);
+ private List CanDeleteUserInventoryCheckFunctions
+ = new List();
- public void addCheckCanDeleteAvatarInventory(CanDeleteAvatarInventory delegateFunc)
+ public void addCheckCanDeleteUserInventory(CanDeleteUserInventory delegateFunc)
{
- if (!CanDeleteAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanDeleteAvatarInventoryCheckFunctions.Add(delegateFunc);
+ if (!CanDeleteUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanDeleteUserInventoryCheckFunctions.Add(delegateFunc);
}
- public void removeCheckCanDeleteAvatarInventory(CanDeleteAvatarInventory delegateFunc)
+ public void removeCheckCanDeleteUserInventory(CanDeleteUserInventory delegateFunc)
{
- if (CanDeleteAvatarInventoryCheckFunctions.Contains(delegateFunc))
- CanDeleteAvatarInventoryCheckFunctions.Remove(delegateFunc);
+ if (CanDeleteUserInventoryCheckFunctions.Contains(delegateFunc))
+ CanDeleteUserInventoryCheckFunctions.Remove(delegateFunc);
}
///
@@ -1291,9 +1291,9 @@ namespace OpenSim.Region.Environment.Scenes
///
///
///
- public bool ExternalChecksCanDeleteAvatarInventory(UUID itemID, UUID userID)
+ public bool ExternalChecksCanDeleteUserInventory(UUID itemID, UUID userID)
{
- foreach (CanDeleteAvatarInventory check in CanDeleteAvatarInventoryCheckFunctions)
+ foreach (CanDeleteUserInventory check in CanDeleteUserInventoryCheckFunctions)
{
if (check(itemID, userID) == false)
{