persists Estate.PublicAccess settings across reboots [re #552]

0.6.6-post-fixes
Dr Scofield 2009-06-10 11:29:09 +00:00
parent 854f4f4896
commit 6eb808f665
1 changed files with 3 additions and 0 deletions

View File

@ -622,6 +622,8 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// If an access specification was provided, use it. // If an access specification was provided, use it.
// Otherwise accept the default. // Otherwise accept the default.
newscene.RegionInfo.EstateSettings.PublicAccess = getBoolean(requestData, "public", m_publicAccess); newscene.RegionInfo.EstateSettings.PublicAccess = getBoolean(requestData, "public", m_publicAccess);
if (persist)
newscene.RegionInfo.EstateSettings.Save();
// enable voice on newly created region if // enable voice on newly created region if
// requested by either the XmlRpc request or the // requested by either the XmlRpc request or the
@ -780,6 +782,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
// Modify access // Modify access
scene.RegionInfo.EstateSettings.PublicAccess = scene.RegionInfo.EstateSettings.PublicAccess =
getBoolean(requestData,"public", scene.RegionInfo.EstateSettings.PublicAccess); getBoolean(requestData,"public", scene.RegionInfo.EstateSettings.PublicAccess);
scene.RegionInfo.EstateSettings.Save();
if (requestData.ContainsKey("enable_voice")) if (requestData.ContainsKey("enable_voice"))
{ {