From 00d4a26eefafbe078af78458c9ca58931e29ecb9 Mon Sep 17 00:00:00 2001 From: Diva Canto Date: Wed, 24 Jul 2013 11:42:35 -0700 Subject: [PATCH] Amend previous commit. --- OpenSim/Region/Framework/Scenes/Scene.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index e443c1d75d..f766140633 100644 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -3739,7 +3739,7 @@ namespace OpenSim.Region.Framework.Scenes try { - if (!AuthorizeUser(agent, out reason)) + if (!AuthorizeUser(agent, SeeIntoRegion, out reason)) { m_authenticateHandler.RemoveCircuit(agent.circuitcode); return false; @@ -3979,7 +3979,7 @@ namespace OpenSim.Region.Framework.Scenes /// outputs the reason to this string /// True if the region accepts this agent. False if it does not. False will /// also return a reason. - protected virtual bool AuthorizeUser(AgentCircuitData agent, out string reason) + protected virtual bool AuthorizeUser(AgentCircuitData agent, bool bypassAccessControl, out string reason) { reason = String.Empty; @@ -4018,7 +4018,7 @@ namespace OpenSim.Region.Framework.Scenes // child agents from being present in the scene for which their root // agent isn't allowed. Otherwise, we allow child agents. The test for // the root is done elsewhere (QueryAccess) - if (!SeeIntoRegion) + if (!bypassAccessControl) { List agentGroups = new List(); @@ -5588,7 +5588,7 @@ namespace OpenSim.Region.Framework.Scenes try { - if (!AuthorizeUser(aCircuit, out reason)) + if (!AuthorizeUser(aCircuit, false, out reason)) { // m_log.DebugFormat("[SCENE]: Denying access for {0}", agentID); return false;