aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMain.cs
diff options
context:
space:
mode:
authorMW2007-08-21 13:21:03 +0000
committerMW2007-08-21 13:21:03 +0000
commit252b48fb3e0905e6b21648e818aebd091e8532a8 (patch)
treedfd27c645a54273c4c1724755bb2b7a92929706e /OpenSim/Region/Application/OpenSimMain.cs
parentAdded Property to SceneObjectGroup to allow the UUID of the region it is in t... (diff)
downloadopensim-SC_OLD-252b48fb3e0905e6b21648e818aebd091e8532a8.zip
opensim-SC_OLD-252b48fb3e0905e6b21648e818aebd091e8532a8.tar.gz
opensim-SC_OLD-252b48fb3e0905e6b21648e818aebd091e8532a8.tar.bz2
opensim-SC_OLD-252b48fb3e0905e6b21648e818aebd091e8532a8.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/Application/OpenSimMain.cs')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs10
1 files changed, 9 insertions, 1 deletions
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
71 71
72 private bool m_silent; 72 private bool m_silent;
73 private string m_logFilename = ("region-console.log"); 73 private string m_logFilename = ("region-console.log");
74 private bool m_permissions = false;
74 75
75 private bool standaloneAuthenticate = false; 76 private bool standaloneAuthenticate = false;
76 private string standaloneWelcomeMessage = null; 77 private string standaloneWelcomeMessage = null;
77 private string standaloneInventoryPlugin = ""; 78 private string standaloneInventoryPlugin = "";
78 private string standaloneUserPlugin = ""; 79 private string standaloneUserPlugin = "";
80
79 81
80 public ConsoleCommand CreateAccount = null; 82 public ConsoleCommand CreateAccount = null;
81 83
@@ -106,6 +108,7 @@ namespace OpenSim
106 m_sandbox = !configSource.Configs["Startup"].GetBoolean("gridmode", false); 108 m_sandbox = !configSource.Configs["Startup"].GetBoolean("gridmode", false);
107 m_physicsEngine = configSource.Configs["Startup"].GetString("physics", "basicphysics"); 109 m_physicsEngine = configSource.Configs["Startup"].GetString("physics", "basicphysics");
108 m_silent = configSource.Configs["Startup"].GetBoolean("noverbose", false); 110 m_silent = configSource.Configs["Startup"].GetBoolean("noverbose", false);
111 m_permissions = configSource.Configs["Startup"].GetBoolean("serverside_object_permissions", false);
109 112
110 m_storageDLL = configSource.Configs["Startup"].GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll"); 113 m_storageDLL = configSource.Configs["Startup"].GetString("storage_plugin", "OpenSim.DataStore.NullStorage.dll");
111 114
@@ -182,7 +185,12 @@ namespace OpenSim
182 scene.AddScriptEngine(ScriptEngine, m_log); 185 scene.AddScriptEngine(ScriptEngine, m_log);
183 // TODO: TEMP load default script 186 // TODO: TEMP load default script
184 ScriptEngine.StartScript(Path.Combine("ScriptEngines", "Default.lsl"), new OpenSim.Region.Environment.Scenes.Scripting.NullScriptHost()); 187 ScriptEngine.StartScript(Path.Combine("ScriptEngines", "Default.lsl"), new OpenSim.Region.Environment.Scenes.Scripting.NullScriptHost());
185 188
189 //Server side object editing permissions checking
190 if (m_permissions)
191 scene.PermissionsMngr.EnablePermissions();
192 else
193 scene.PermissionsMngr.DisablePermissions();
186 194
187 m_localScenes.Add(scene); 195 m_localScenes.Add(scene);
188 196