Prevent sending Land Properties for unprivileged users

0.8.0.3
Dev Random 2014-04-23 12:58:31 -04:00 committed by Justin Clark-Casey (justincc)
parent 7a5699224e
commit cb1f2886cd
1 changed files with 8 additions and 5 deletions

View File

@ -27,6 +27,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq;
using System.Reflection; using System.Reflection;
using log4net; using log4net;
using OpenMetaverse; using OpenMetaverse;
@ -367,12 +368,14 @@ namespace OpenSim.Region.CoreModules.World.Land
ParcelFlags.DenyAgeUnverified); ParcelFlags.DenyAgeUnverified);
} }
uint preserve = LandData.Flags & ~allowedDelta; if (allowedDelta != 0)
newData.Flags = preserve | (args.ParcelFlags & allowedDelta); {
uint preserve = LandData.Flags & ~allowedDelta;
newData.Flags = preserve | (args.ParcelFlags & allowedDelta);
m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData); m_scene.LandChannel.UpdateLandObject(LandData.LocalID, newData);
SendLandUpdateToAvatarsOverMe(snap_selection);
SendLandUpdateToAvatarsOverMe(snap_selection); }
} }
public void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area) public void UpdateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area)