Allow anyone to get a CAP to the console - check rights on use
parent
52947b6280
commit
d8e558a3da
|
@ -104,8 +104,8 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
|
|
||||||
public void RegisterCaps(UUID agentID, Caps caps)
|
public void RegisterCaps(UUID agentID, Caps caps)
|
||||||
{
|
{
|
||||||
if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(agentID) && !m_scene.Permissions.IsGod(agentID))
|
// if (!m_scene.RegionInfo.EstateSettings.IsEstateManagerOrOwner(agentID) && !m_scene.Permissions.IsGod(agentID))
|
||||||
return;
|
// return;
|
||||||
|
|
||||||
UUID capID = UUID.Random();
|
UUID capID = UUID.Random();
|
||||||
|
|
||||||
|
@ -191,6 +191,12 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||||
|
|
||||||
OSD osd = OSDParser.DeserializeLLSDXml(message);
|
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();
|
string cmd = osd.AsString();
|
||||||
if (cmd == "set console on")
|
if (cmd == "set console on")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue