diff options
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 45617fc..89e2b55 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | |||
@@ -27,6 +27,7 @@ | |||
27 | 27 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.Linq; | ||
30 | using System.Reflection; | 31 | using System.Reflection; |
31 | using log4net; | 32 | using log4net; |
32 | using Nini.Config; | 33 | using Nini.Config; |
@@ -160,7 +161,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions | |||
160 | string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", | 161 | string permissionModules = Util.GetConfigVarFromSections<string>(config, "permissionmodules", |
161 | new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); | 162 | new string[] { "Startup", "Permissions" }, "DefaultPermissionsModule"); |
162 | 163 | ||
163 | List<string> modules = new List<string>(permissionModules.Split(',')); | 164 | List<string> modules = new List<string>(permissionModules.Split(',').Select(m => m.Trim())); |
164 | 165 | ||
165 | if (!modules.Contains("DefaultPermissionsModule")) | 166 | if (!modules.Contains("DefaultPermissionsModule")) |
166 | return; | 167 | return; |