diff options
author | Melanie | 2012-05-17 13:28:25 +0100 |
---|---|---|
committer | Melanie | 2012-05-17 13:28:25 +0100 |
commit | 34f20b7fe38067c36872d875754b1d7efe4973a9 (patch) | |
tree | 9ff8f0d3cd61cf1e5ccbf60640ae2df951b2a37c /OpenSim/Region/CoreModules | |
parent | Merge branch 'master' into careminster (diff) | |
parent | Merge branch 'master' of /home/opensim/lib/osgrid/opensim (diff) | |
download | opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.zip opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.tar.gz opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.tar.bz2 opensim-SC-34f20b7fe38067c36872d875754b1d7efe4973a9.tar.xz |
Merge branch 'master' into careminster
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | 16 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | 14 |
2 files changed, 18 insertions, 12 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs index 514a65b..f9e2b2f 100644 --- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs +++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs | |||
@@ -433,11 +433,16 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
433 | 433 | ||
434 | string reason; | 434 | string reason; |
435 | string version; | 435 | string version; |
436 | if (!m_aScene.SimulationService.QueryAccess(finalDestination, sp.ControllingClient.AgentId, Vector3.Zero, out version, out reason)) | 436 | if (!m_aScene.SimulationService.QueryAccess( |
437 | finalDestination, sp.ControllingClient.AgentId, Vector3.Zero, out version, out reason)) | ||
437 | { | 438 | { |
438 | sp.ControllingClient.SendTeleportFailed("Teleport failed: " + reason); | 439 | sp.ControllingClient.SendTeleportFailed(reason); |
439 | ResetFromTransit(sp.UUID); | 440 | ResetFromTransit(sp.UUID); |
440 | 441 | ||
442 | m_log.DebugFormat( | ||
443 | "[ENTITY TRANSFER MODULE]: {0} was stopped from teleporting from {1} to {2} because {3}", | ||
444 | sp.Name, sp.Scene.RegionInfo.RegionName, finalDestination.RegionName, reason); | ||
445 | |||
441 | return; | 446 | return; |
442 | } | 447 | } |
443 | 448 | ||
@@ -480,10 +485,13 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer | |||
480 | bool logout = false; | 485 | bool logout = false; |
481 | if (!CreateAgent(sp, reg, finalDestination, agentCircuit, teleportFlags, out reason, out logout)) | 486 | if (!CreateAgent(sp, reg, finalDestination, agentCircuit, teleportFlags, out reason, out logout)) |
482 | { | 487 | { |
483 | sp.ControllingClient.SendTeleportFailed( | 488 | sp.ControllingClient.SendTeleportFailed(String.Format("Teleport refused: {0}", reason)); |
484 | String.Format("Teleport refused: {0}", reason)); | ||
485 | ResetFromTransit(sp.UUID); | 489 | ResetFromTransit(sp.UUID); |
486 | 490 | ||
491 | m_log.DebugFormat( | ||
492 | "[ENTITY TRANSFER MODULE]: Teleport of {0} from {1} to {2} was refused because {3}", | ||
493 | sp.Name, sp.Scene.RegionInfo.RegionName, finalDestination.RegionName, reason); | ||
494 | |||
487 | return; | 495 | return; |
488 | } | 496 | } |
489 | 497 | ||
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs index 190f63b..8c97f58 100644 --- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs +++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs | |||
@@ -450,19 +450,17 @@ namespace OpenSim.Region.CoreModules.World.Permissions | |||
450 | } | 450 | } |
451 | 451 | ||
452 | /// <summary> | 452 | /// <summary> |
453 | /// Is the given user an administrator (in other words, a god)? | 453 | /// Is the user regarded as an administrator? |
454 | /// </summary> | 454 | /// </summary> |
455 | /// <param name="user"></param> | 455 | /// <param name="user"></param> |
456 | /// <returns></returns> | 456 | /// <returns></returns> |
457 | protected bool IsAdministrator(UUID user) | 457 | protected bool IsAdministrator(UUID user) |
458 | { | 458 | { |
459 | if (user == UUID.Zero) return false; | 459 | if (user == UUID.Zero) |
460 | 460 | return false; | |
461 | if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero) | 461 | |
462 | { | 462 | if (m_scene.RegionInfo.EstateSettings.EstateOwner == user && m_RegionOwnerIsGod) |
463 | if (m_scene.RegionInfo.EstateSettings.EstateOwner == user && m_RegionOwnerIsGod) | 463 | return true; |
464 | return true; | ||
465 | } | ||
466 | 464 | ||
467 | if (IsEstateManager(user) && m_RegionManagerIsGod) | 465 | if (IsEstateManager(user) && m_RegionManagerIsGod) |
468 | return true; | 466 | return true; |