Add perms check to the teleport home client command handlers.

slimupdates2
Melanie Thielker 2010-05-05 01:32:55 +02:00 committed by Melanie
parent 3761f79971
commit 34d882b70d
1 changed files with 6 additions and 0 deletions

View File

@ -470,6 +470,9 @@ namespace OpenSim.Region.CoreModules.World.Estate
private void handleEstateTeleportOneUserHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID, UUID prey)
{
if (!m_scene.Permissions.CanIssueEstateCommand(remover_client.AgentId, false))
return;
if (prey != UUID.Zero)
{
ScenePresence s = m_scene.GetScenePresence(prey);
@ -483,6 +486,9 @@ namespace OpenSim.Region.CoreModules.World.Estate
private void handleEstateTeleportAllUsersHomeRequest(IClientAPI remover_client, UUID invoice, UUID senderID)
{
if (!m_scene.Permissions.CanIssueEstateCommand(remover_client.AgentId, false))
return;
m_scene.ForEachScenePresence(delegate(ScenePresence sp)
{
if (sp.UUID != senderID)