From a780e01a544e13cc0326ad92ca7927b2443e5ce4 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Wed, 16 Apr 2014 11:43:30 +0300 Subject: Fixed: the parcel flag "Allow Scripts from Group" should only check if the parcel has a Group set; it doesn't have to be *deeded* to the group Also some cleanup of the use of Group ID's (with no change to functionality). --- .../CoreModules/World/Archiver/ArchiveReadRequest.cs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/CoreModules/World/Archiver') diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs index 54715a8..a1629fb 100644 --- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs +++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs @@ -633,12 +633,19 @@ namespace OpenSim.Region.CoreModules.World.Archiver // Validate User and Group UUID's + if (!ResolveGroupUuid(parcel.GroupID)) + parcel.GroupID = UUID.Zero; + if (parcel.IsGroupOwned) { - if (!ResolveGroupUuid(parcel.GroupID)) + if (parcel.GroupID != UUID.Zero) + { + // In group-owned parcels, OwnerID=GroupID. This should already be the case, but let's make sure. + parcel.OwnerID = parcel.GroupID; + } + else { parcel.OwnerID = m_rootScene.RegionInfo.EstateSettings.EstateOwner; - parcel.GroupID = UUID.Zero; parcel.IsGroupOwned = false; } } @@ -646,9 +653,6 @@ namespace OpenSim.Region.CoreModules.World.Archiver { if (!ResolveUserUuid(scene, parcel.OwnerID)) parcel.OwnerID = m_rootScene.RegionInfo.EstateSettings.EstateOwner; - - if (!ResolveGroupUuid(parcel.GroupID)) - parcel.GroupID = UUID.Zero; } List accessList = new List(); -- cgit v1.1