diff options
author | Justin Clarke Casey | 2008-11-13 18:52:16 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-11-13 18:52:16 +0000 |
commit | ef601d805ab948caf1ab4dcf4f5ee2ff640be1df (patch) | |
tree | 8c7c5390eac69b258c28ecab121a94ad566446e3 /OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs | |
parent | * Attempt to make OpenSim.ini.example a bit more readable by (diff) | |
download | opensim-SC-ef601d805ab948caf1ab4dcf4f5ee2ff640be1df.zip opensim-SC-ef601d805ab948caf1ab4dcf4f5ee2ff640be1df.tar.gz opensim-SC-ef601d805ab948caf1ab4dcf4f5ee2ff640be1df.tar.bz2 opensim-SC-ef601d805ab948caf1ab4dcf4f5ee2ff640be1df.tar.xz |
* First part of a series of patches
* Intension is to provide a way to lock down script creation to administrators/gods only
* Defaults will remain as they are at the moment
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs index f8d041a..c5bbcdd 100644 --- a/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs +++ b/OpenSim/Region/Environment/Scenes/SceneExternalChecks.cs | |||
@@ -1070,7 +1070,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1070 | 1070 | ||
1071 | #endregion | 1071 | #endregion |
1072 | 1072 | ||
1073 | public delegate bool CanCreateInventory(uint invType, UUID objectID, UUID userID); | 1073 | public delegate bool CanCreateInventory(int invType, UUID objectID, UUID userID); |
1074 | private List<CanCreateInventory> CanCreateInventoryCheckFunctions = new List<CanCreateInventory>(); | 1074 | private List<CanCreateInventory> CanCreateInventoryCheckFunctions = new List<CanCreateInventory>(); |
1075 | 1075 | ||
1076 | public void addCheckCanCreateInventory(CanCreateInventory delegateFunc) | 1076 | public void addCheckCanCreateInventory(CanCreateInventory delegateFunc) |
@@ -1085,7 +1085,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1085 | CanCreateInventoryCheckFunctions.Remove(delegateFunc); | 1085 | CanCreateInventoryCheckFunctions.Remove(delegateFunc); |
1086 | } | 1086 | } |
1087 | 1087 | ||
1088 | public bool ExternalChecksCanCreateInventory(uint invType, UUID objectID, UUID userID) | 1088 | public bool ExternalChecksCanCreateInventory(int invType, UUID objectID, UUID userID) |
1089 | { | 1089 | { |
1090 | foreach (CanCreateInventory check in CanCreateInventoryCheckFunctions) | 1090 | foreach (CanCreateInventory check in CanCreateInventoryCheckFunctions) |
1091 | { | 1091 | { |