From 4d493dd32eac473d074a93c3e554aef4ab5b94a4 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Sat, 12 Dec 2015 15:40:09 +0000 Subject: [PATCH] make sure land access/ban lists are active when changed by new viewers --- OpenSim/Region/CoreModules/World/Land/LandObject.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 295dfee79d..28652d78f4 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs @@ -740,6 +740,17 @@ namespace OpenSim.Region.CoreModules.World.Land newData.ParcelAccessList.Add(temp); } + // update use lists flags + // rights already checked or we wont be here + uint parcelflags = newData.Flags; + + if((flags & (uint)AccessList.Access) != 0) + parcelflags |= (uint)ParcelFlags.UseAccessList; + if((flags & (uint)AccessList.Ban) != 0) + parcelflags |= (uint)ParcelFlags.UseBanList; + + newData.Flags = parcelflags; + m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); }