Add perms check to the teleport home client command handlers.

avinationmerge
Melanie Thielker 2010-05-05 01:32:55 +02:00
parent 49efec2ef1
commit efc3241541
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)