From 5d6da6bb358b6d7e7f62317cd2b88c3b0074bcc0 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sun, 13 Dec 2015 12:14:31 +0000 Subject: fix: if no groups module, deny access --- OpenSim/Region/Framework/Scenes/Scene.cs | 4 ++-- OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Framework') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 97b11c7..0691062 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -4458,8 +4458,8 @@ namespace OpenSim.Region.Framework.Scenes // finally test groups - if (m_groupsModule == null) // if no groups allow - return true; + if (m_groupsModule == null) // if no groups refuse + return false; UUID[] estateGroups = RegionInfo.EstateSettings.EstateGroups; diff --git a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs index 2255869..3d51a63 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCrossingTests.cs @@ -39,6 +39,7 @@ using OpenSim.Region.CoreModules.Framework.EntityTransfer; using OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation; using OpenSim.Region.CoreModules.World.Permissions; using OpenSim.Tests.Common; +using OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups; using System.Threading; namespace OpenSim.Region.Framework.Scenes.Tests -- cgit v1.1