From d8e558a3daf9b55dd4c81f1687b82cdd907f0dc3 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 11 Mar 2019 23:36:52 +0000 Subject: Allow anyone to get a CAP to the console - check rights on use --- OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/ClientStack/Linden') diff --git a/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs index e8387e3..1f229c0 100644 --- a/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs +++ b/OpenSim/Region/ClientStack/Linden/Caps/RegionConsoleModule.cs @@ -104,8 +104,8 @@ namespace OpenSim.Region.ClientStack.Linden public void RegisterCaps(UUID agentID, Caps caps) { - if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(agentID) && !m_scene.Permissions.IsGod(agentID)) - return; +// if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(agentID) && !m_scene.Permissions.IsGod(agentID)) +// return; UUID capID = UUID.Random(); @@ -191,6 +191,12 @@ namespace OpenSim.Region.ClientStack.Linden OSD osd = OSDParser.DeserializeLLSDXml(message); + if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_agentID) && !m_isGod) + { + m_consoleModule.SendConsoleOutput(m_agentID, "No access"); + return new byte[0]; + } + string cmd = osd.AsString(); if (cmd == "set console on") { -- cgit v1.1