aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorMelanie Thielker2010-05-05 01:32:55 +0200
committerMelanie2010-05-04 23:15:07 +0100
commit34d882b70d0374a445b3f6b1cf4931ef322d9587 (patch)
tree82e28488d190d3fe46c1eeffd1d5502b1a6e2e51 /OpenSim
parentStrip estate message sending out from the estate management module and (diff)
downloadopensim-SC-34d882b70d0374a445b3f6b1cf4931ef322d9587.zip
opensim-SC-34d882b70d0374a445b3f6b1cf4931ef322d9587.tar.gz
opensim-SC-34d882b70d0374a445b3f6b1cf4931ef322d9587.tar.bz2
opensim-SC-34d882b70d0374a445b3f6b1cf4931ef322d9587.tar.xz
Add perms check to the teleport home client command handlers.
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs6
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)