Allow anyone to get a CAP to the console - check rights on use

0.9.1.0-post-fixes
root 2019-03-11 23:36:52 +00:00
parent 52947b6280
commit d8e558a3da
1 changed files with 8 additions and 2 deletions

View File

@ -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")
{