diff options
author | UbitUmarov | 2018-07-14 16:36:41 +0100 |
---|---|---|
committer | UbitUmarov | 2018-07-14 16:36:41 +0100 |
commit | a4881797b978b0ab73035ef6f9fc10ae897b08cc (patch) | |
tree | d1b297456e2508893fcc377ec717cde3a98834b5 /OpenSim/Region/CoreModules/World/Estate | |
parent | recover lost null check in last commit (diff) | |
download | opensim-SC-a4881797b978b0ab73035ef6f9fc10ae897b08cc.zip opensim-SC-a4881797b978b0ab73035ef6f9fc10ae897b08cc.tar.gz opensim-SC-a4881797b978b0ab73035ef6f9fc10ae897b08cc.tar.bz2 opensim-SC-a4881797b978b0ab73035ef6f9fc10ae897b08cc.tar.xz |
add options for regions to ignore age < 18 and payment access control where they don't apply
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Estate')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index b7fb52e..95fc741 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -64,6 +64,8 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
64 | /// If false, region restart requests from the client are blocked even if they are otherwise legitimate. | 64 | /// If false, region restart requests from the client are blocked even if they are otherwise legitimate. |
65 | /// </summary> | 65 | /// </summary> |
66 | public bool AllowRegionRestartFromClient { get; set; } | 66 | public bool AllowRegionRestartFromClient { get; set; } |
67 | public bool IgnoreEstateMinorAccessControl { get; set; } | ||
68 | public bool IgnoreEstatePaymentAccessControl { get; set; } | ||
67 | 69 | ||
68 | private EstateTerrainXferHandler TerrainUploader; | 70 | private EstateTerrainXferHandler TerrainUploader; |
69 | public TelehubManager m_Telehub; | 71 | public TelehubManager m_Telehub; |
@@ -89,7 +91,11 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
89 | IConfig config = source.Configs["EstateManagement"]; | 91 | IConfig config = source.Configs["EstateManagement"]; |
90 | 92 | ||
91 | if (config != null) | 93 | if (config != null) |
94 | { | ||
92 | AllowRegionRestartFromClient = config.GetBoolean("AllowRegionRestartFromClient", true); | 95 | AllowRegionRestartFromClient = config.GetBoolean("AllowRegionRestartFromClient", true); |
96 | IgnoreEstateMinorAccessControl = config.GetBoolean("IgnoreEstateMinorAccessControl", false); | ||
97 | IgnoreEstatePaymentAccessControl = config.GetBoolean("IgnoreEstatePaymentAccessControl", false); | ||
98 | } | ||
93 | } | 99 | } |
94 | 100 | ||
95 | public void AddRegion(Scene scene) | 101 | public void AddRegion(Scene scene) |
@@ -118,6 +124,9 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
118 | scene.TriggerEstateSunUpdate(); | 124 | scene.TriggerEstateSunUpdate(); |
119 | 125 | ||
120 | UserManager = scene.RequestModuleInterface<IUserManagement>(); | 126 | UserManager = scene.RequestModuleInterface<IUserManagement>(); |
127 | |||
128 | scene.RegionInfo.EstateSettings.DoDenyMinors = !IgnoreEstateMinorAccessControl; | ||
129 | scene.RegionInfo.EstateSettings.DoDenyAnonymous = !IgnoreEstateMinorAccessControl; | ||
121 | } | 130 | } |
122 | 131 | ||
123 | public void Close() | 132 | public void Close() |