From c9c016e26a6d73a0bea1cbdc66fbc2595f58bf94 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 14 May 2008 16:51:16 +0000 Subject: * Applying patches from Melanie to cover permissions module. Thanks! --- .../Environment/Modules/World/Permissions/PermissionsModule.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'OpenSim/Region/Environment/Modules/World') 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 @@ using libsecondlife; using Nini.Config; using System; +using System.Collections; +using System.Collections.Generic; using System.Reflection; using log4net; using OpenSim.Region.Environment.Interfaces; @@ -143,6 +145,13 @@ namespace OpenSim.Region.Environment.Modules.World.Permissions IConfig myConfig = config.Configs["Startup"]; + string permissionModules = myConfig.GetString("permissionmodules", "DefaultPermissionsModule"); + + List modules=new List(permissionModules.Split(',')); + + if(!modules.Contains("DefaultPermissionsModule")) + return; + m_bypassPermissions = !myConfig.GetBoolean("serverside_object_permissions", true); m_scene.RegisterModuleInterface(this); -- cgit v1.1