diff options
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 03933c7..92e040f 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -217,6 +217,7 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
217 | m_scene.Permissions.AddEditObjectInventoryHandler(CanEditObjectInventory);//MAYBE FULLY IMPLEMENTED | 217 | m_scene.Permissions.AddEditObjectInventoryHandler(CanEditObjectInventory);//MAYBE FULLY IMPLEMENTED |
218 | m_scene.Permissions.AddCanCopyObjectInventoryHandler(CanCopyObjectInventory); //NOT YET IMPLEMENTED | 218 | m_scene.Permissions.AddCanCopyObjectInventoryHandler(CanCopyObjectInventory); //NOT YET IMPLEMENTED |
219 | m_scene.Permissions.AddCanDeleteObjectInventoryHandler(CanDeleteObjectInventory); //NOT YET IMPLEMENTED | 219 | m_scene.Permissions.AddCanDeleteObjectInventoryHandler(CanDeleteObjectInventory); //NOT YET IMPLEMENTED |
220 | m_scene.Permissions.AddResetScriptHandler(CanResetScript); | ||
220 | 221 | ||
221 | m_scene.Permissions.AddCanCreateUserInventoryHandler(CanCreateUserInventory); //NOT YET IMPLEMENTED | 222 | m_scene.Permissions.AddCanCreateUserInventoryHandler(CanCreateUserInventory); //NOT YET IMPLEMENTED |
222 | m_scene.Permissions.AddCanCopyUserInventoryHandler(CanCopyUserInventory); //NOT YET IMPLEMENTED | 223 | m_scene.Permissions.AddCanCopyUserInventoryHandler(CanCopyUserInventory); //NOT YET IMPLEMENTED |
@@ -1427,5 +1428,14 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
1427 | 1428 | ||
1428 | return true; | 1429 | return true; |
1429 | } | 1430 | } |
1431 | |||
1432 | private bool CanResetScript(UUID prim, UUID script, UUID agentID, Scene scene) | ||
1433 | { | ||
1434 | DebugPermissionInformation(MethodInfo.GetCurrentMethod().Name); | ||
1435 | if (m_bypassPermissions) return m_bypassPermissionsValue; | ||
1436 | |||
1437 | // You can reset the scripts in any object you can edit | ||
1438 | return GenericObjectPermission(agentID, prim, false); | ||
1439 | } | ||
1430 | } | 1440 | } |
1431 | } | 1441 | } |