mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
Allow anyone to get a CAP to the console - check rights on use
This commit is contained in:
@@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user