diff options
author | Melanie | 2012-03-22 20:38:49 +0000 |
---|---|---|
committer | Melanie | 2012-03-22 20:38:49 +0000 |
commit | 33818994810130117bae62ba2123bf8b55f181ea (patch) | |
tree | eeb54ef00919abbd1a86b08a659570512856ac42 /OpenSim/Region/CoreModules/World/Land | |
parent | Revert "Stop messing order of updates, destroing the defined order of the sel... (diff) | |
parent | Rework Diva's patch to simplify it (diff) | |
download | opensim-SC-33818994810130117bae62ba2123bf8b55f181ea.zip opensim-SC-33818994810130117bae62ba2123bf8b55f181ea.tar.gz opensim-SC-33818994810130117bae62ba2123bf8b55f181ea.tar.bz2 opensim-SC-33818994810130117bae62ba2123bf8b55f181ea.tar.xz |
Merge branch 'master' into careminster
Conflicts:
OpenSim/Region/CoreModules/World/Land/LandObject.cs
OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/World/Land')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 38 |
1 files changed, 21 insertions, 17 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 02a163f..e86887d 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -497,7 +497,8 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
497 | 497 | ||
498 | public bool IsRestrictedFromLand(UUID avatar) | 498 | public bool IsRestrictedFromLand(UUID avatar) |
499 | { | 499 | { |
500 | ExpireAccessList(); | 500 | if ((LandData.Flags & (uint) ParcelFlags.UseAccessList) == 0) |
501 | return false; | ||
501 | 502 | ||
502 | if (m_scene.Permissions.IsAdministrator(avatar)) | 503 | if (m_scene.Permissions.IsAdministrator(avatar)) |
503 | return false; | 504 | return false; |
@@ -508,24 +509,27 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
508 | if (avatar == LandData.OwnerID) | 509 | if (avatar == LandData.OwnerID) |
509 | return false; | 510 | return false; |
510 | 511 | ||
511 | if ((LandData.Flags & (uint) ParcelFlags.UseAccessList) > 0) | 512 | if (HasGroupAccess(avatar)) |
512 | { | 513 | return false; |
513 | if (LandData.ParcelAccessList.FindIndex( | 514 | |
514 | delegate(LandAccessEntry e) | 515 | return (!IsInLandAccessList(avatar)); |
515 | { | 516 | } |
516 | if (e.AgentID == avatar && e.Flags == AccessList.Access) | 517 | |
517 | return true; | 518 | public bool IsInLandAccessList(UUID avatar) |
518 | return false; | 519 | { |
519 | }) == -1) | 520 | ExpireAccessList(); |
520 | { | 521 | |
521 | if (!HasGroupAccess(avatar)) | 522 | if (LandData.ParcelAccessList.FindIndex( |
523 | delegate(LandAccessEntry e) | ||
522 | { | 524 | { |
523 | return true; | 525 | if (e.AgentID == avatar && e.Flags == AccessList.Access) |
524 | } | 526 | return true; |
525 | } | 527 | return false; |
528 | }) == -1) | ||
529 | { | ||
530 | return false; | ||
526 | } | 531 | } |
527 | 532 | return true; | |
528 | return false; | ||
529 | } | 533 | } |
530 | 534 | ||
531 | public void SendLandUpdateToClient(IClientAPI remote_client) | 535 | public void SendLandUpdateToClient(IClientAPI remote_client) |