persists Estate.PublicAccess settings across reboots [re #552]
parent
854f4f4896
commit
6eb808f665
|
@ -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"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue