From 252b48fb3e0905e6b21648e818aebd091e8532a8 Mon Sep 17 00:00:00 2001 From: MW Date: Tue, 21 Aug 2007 13:21:03 +0000 Subject: Can now turn on/off server side permission checking (on prim editing etc) from the opensim.ini file. Just add a line to the Startup section like : serverside_object_permissions = true Changes /editing that are made to clothing/ body parts in your inventory should now be saved between logins/ restarts. --- OpenSim/Region/Application/OpenSimMain.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index 327a3c2..2e37029 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -71,11 +71,13 @@ namespace OpenSim private bool m_silent; private string m_logFilename = ("region-console.log"); + private bool m_permissions = false; private bool standaloneAuthenticate = false; private string standaloneWelcomeMessage = null; private string standaloneInventoryPlugin = ""; private string standaloneUserPlugin = ""; + public ConsoleCommand CreateAccount = null; @@ -106,6 +108,7 @@ namespace OpenSim m_sandbox = !configSource.Configs["Startup"].GetBoolean("gridmode", false); m_physicsEngine = configSource.Configs["Startup"].GetString("physics", "basicphysics"); m_silent = configSource.Configs["Startup"].GetBoolean("noverbose", false); + m_permissions = configSource.Configs["Startup"].GetBoolean("serverside_object_permissions", false); m_storageDLL = configSource.Configs["Startup"].GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll"); @@ -182,7 +185,12 @@ namespace OpenSim scene.AddScriptEngine(ScriptEngine, m_log); // TODO: TEMP load default script ScriptEngine.StartScript(Path.Combine("ScriptEngines", "Default.lsl"), new OpenSim.Region.Environment.Scenes.Scripting.NullScriptHost()); - + + //Server side object editing permissions checking + if (m_permissions) + scene.PermissionsMngr.EnablePermissions(); + else + scene.PermissionsMngr.DisablePermissions(); m_localScenes.Add(scene); -- cgit v1.1