diff options
author | Melanie Thielker | 2010-05-05 01:32:55 +0200 |
---|---|---|
committer | Melanie Thielker | 2010-05-05 01:32:55 +0200 |
commit | efc32415414753adc7f3f170e2d7a339095212db (patch) | |
tree | 32a5d6aef71ed532dd208f1e711f07cfc1daea8d /OpenSim/Region | |
parent | Strip estate message sending out from the estate management module and (diff) | |
download | opensim-SC-efc32415414753adc7f3f170e2d7a339095212db.zip opensim-SC-efc32415414753adc7f3f170e2d7a339095212db.tar.gz opensim-SC-efc32415414753adc7f3f170e2d7a339095212db.tar.bz2 opensim-SC-efc32415414753adc7f3f170e2d7a339095212db.tar.xz |
Add perms check to the teleport home client command handlers.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs index abd0fcb..940b535 100644 --- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs | |||
@@ -470,6 +470,9 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
470 | 470 | ||
471 | private void handleEstateTeleportOneUserHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID, UUID prey) | 471 | private void handleEstateTeleportOneUserHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID, UUID prey) |
472 | { | 472 | { |
473 | if (!m_scene.Permissions.CanIssueEstateCommand(remover_client.AgentId, false)) | ||
474 | return; | ||
475 | |||
473 | if (prey != UUID.Zero) | 476 | if (prey != UUID.Zero) |
474 | { | 477 | { |
475 | ScenePresence s = m_scene.GetScenePresence(prey); | 478 | ScenePresence s = m_scene.GetScenePresence(prey); |
@@ -483,6 +486,9 @@ namespace OpenSim.Region.CoreModules.World.Estate | |||
483 | 486 | ||
484 | private void handleEstateTeleportAllUsersHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID) | 487 | private void handleEstateTeleportAllUsersHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID) |
485 | { | 488 | { |
489 | if (!m_scene.Permissions.CanIssueEstateCommand(remover_client.AgentId, false)) | ||
490 | return; | ||
491 | |||
486 | m_scene.ForEachScenePresence(delegate(ScenePresence sp) | 492 | m_scene.ForEachScenePresence(delegate(ScenePresence sp) |
487 | { | 493 | { |
488 | if (sp.UUID != senderID) | 494 | if (sp.UUID != senderID) |