diff options
author | Adam Frisby | 2008-05-14 16:51:16 +0000 |
---|---|---|
committer | Adam Frisby | 2008-05-14 16:51:16 +0000 |
commit | c9c016e26a6d73a0bea1cbdc66fbc2595f58bf94 (patch) | |
tree | 861da7c88027fcd1264fbed23316845f10e0f985 /OpenSim/Region/Environment/Modules/World | |
parent | fix for a change in inventory that meant I was returning a lot (diff) | |
download | opensim-SC_OLD-c9c016e26a6d73a0bea1cbdc66fbc2595f58bf94.zip opensim-SC_OLD-c9c016e26a6d73a0bea1cbdc66fbc2595f58bf94.tar.gz opensim-SC_OLD-c9c016e26a6d73a0bea1cbdc66fbc2595f58bf94.tar.bz2 opensim-SC_OLD-c9c016e26a6d73a0bea1cbdc66fbc2595f58bf94.tar.xz |
* Applying patches from Melanie to cover permissions module. Thanks!
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs index 44f5c2d..8278a1d 100644 --- a/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/Environment/Modules/World/Permissions/PermissionsModule.cs | |||
@@ -28,6 +28,8 @@ | |||
28 | using libsecondlife; | 28 | using libsecondlife; |
29 | using Nini.Config; | 29 | using Nini.Config; |
30 | using System; | 30 | using System; |
31 | using System.Collections; | ||
32 | using System.Collections.Generic; | ||
31 | using System.Reflection; | 33 | using System.Reflection; |
32 | using log4net; | 34 | using log4net; |
33 | using OpenSim.Region.Environment.Interfaces; | 35 | using OpenSim.Region.Environment.Interfaces; |
@@ -143,6 +145,13 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions | |||
143 | 145 | ||
144 | IConfig myConfig = config.Configs["Startup"]; | 146 | IConfig myConfig = config.Configs["Startup"]; |
145 | 147 | ||
148 | string permissionModules = myConfig.GetString("permissionmodules", "DefaultPermissionsModule"); | ||
149 | |||
150 | List<string> modules=new List<string>(permissionModules.Split(',')); | ||
151 | |||
152 | if(!modules.Contains("DefaultPermissionsModule")) | ||
153 | return; | ||
154 | |||
146 | m_bypassPermissions = !myConfig.GetBoolean("serverside_object_permissions", true); | 155 | m_bypassPermissions = !myConfig.GetBoolean("serverside_object_permissions", true); |
147 | 156 | ||
148 | m_scene.RegisterModuleInterface<IScenePermissions>(this); | 157 | m_scene.RegisterModuleInterface<IScenePermissions>(this); |