From c41616b7711d3c2ab91ae0b8a06e22d8bfd5e0aa Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 7 Jan 2017 19:42:58 +0000 Subject: ignore teleport flag GodLike. Perform checks acording to agent static local or grid rights --- OpenSim/Region/Framework/Scenes/Scene.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Framework/Scenes') diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs index 87c3049..2137b42 100755 --- a/OpenSim/Region/Framework/Scenes/Scene.cs +++ b/OpenSim/Region/Framework/Scenes/Scene.cs @@ -3951,7 +3951,7 @@ namespace OpenSim.Region.Framework.Scenes bool vialogin = ((teleportFlags & (uint)TPFlags.ViaLogin) != 0 || (teleportFlags & (uint)TPFlags.ViaHGLogin) != 0); bool viahome = ((teleportFlags & (uint)TPFlags.ViaHome) != 0); - bool godlike = ((teleportFlags & (uint)TPFlags.Godlike) != 0); +// bool godlike = ((teleportFlags & (uint)TPFlags.Godlike) != 0); reason = String.Empty; @@ -4251,7 +4251,8 @@ namespace OpenSim.Region.Framework.Scenes } // only check access, actual relocations will happen later on ScenePresence MakeRoot // allow child agents creation - if(!godlike && teleportFlags != (uint) TPFlags.Default) +// if(!godlike && teleportFlags != (uint) TPFlags.Default) + if(teleportFlags != (uint) TPFlags.Default) { bool checkTeleHub; @@ -6188,9 +6189,10 @@ Environment.Exit(1); if (Permissions.IsGod(agentID)) return true; - bool isAdmin = Permissions.IsAdministrator(agentID); - if(isAdmin) - return true; + // Permissions.IsAdministrator is the same as IsGod for now +// bool isAdmin = Permissions.IsAdministrator(agentID); +// if(isAdmin) +// return true; // also honor estate managers access rights bool isManager = Permissions.IsEstateManager(agentID); -- cgit v1.1