aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xOpenSim/Region/Framework/Scenes/Scene.cs12
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs7
2 files changed, 3 insertions, 16 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index 205a321..e709d6c 100755
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -239,16 +239,6 @@ namespace OpenSim.Region.Framework.Scenes
239 public bool LegacySitOffsets = true; 239 public bool LegacySitOffsets = true;
240 240
241 /// <summary> 241 /// <summary>
242 /// set false to not propagare group rights outwards as legacy did
243 /// </summary>
244 public bool PropagateGroupShareOutwards = true;
245
246 /// <summary>
247 /// set false to not propagare Everyone rights outwards as legacy did
248 /// </summary>
249 public bool PropagateAnyOneOutwards = true;
250
251 /// <summary>
252 /// Can avatars cross from and to this region? 242 /// Can avatars cross from and to this region?
253 /// </summary> 243 /// </summary>
254 public bool AllowAvatarCrossing { get; set; } 244 public bool AllowAvatarCrossing { get; set; }
@@ -990,8 +980,6 @@ namespace OpenSim.Region.Framework.Scenes
990 980
991 // old versions compatibility 981 // old versions compatibility
992 LegacySitOffsets = startupConfig.GetBoolean("LegacySitOffsets", LegacySitOffsets); 982 LegacySitOffsets = startupConfig.GetBoolean("LegacySitOffsets", LegacySitOffsets);
993 PropagateGroupShareOutwards = startupConfig.GetBoolean("PropagateGroupShareOutwards", PropagateGroupShareOutwards);
994 PropagateAnyOneOutwards = startupConfig.GetBoolean("PropagateAnyOneOutwards", PropagateAnyOneOutwards);
995 983
996 if (m_defaultDrawDistance > m_maxDrawDistance) 984 if (m_defaultDrawDistance > m_maxDrawDistance)
997 m_defaultDrawDistance = m_maxDrawDistance; 985 m_defaultDrawDistance = m_maxDrawDistance;
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
index 6bb92f4..f778367 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
@@ -350,9 +350,8 @@ namespace OpenSim.Region.Framework.Scenes
350 uint everyone = rootEveryonePerms; 350 uint everyone = rootEveryonePerms;
351 351
352 bool needUpdate = false; 352 bool needUpdate = false;
353 bool propGroupOut = Scene.PropagateGroupShareOutwards;
354 // date is time of writing april 30th 2017 353 // date is time of writing april 30th 2017
355 bool propAnyOut = Scene.PropagateAnyOneOutwards & (RootPart.CreationDate == 0 || RootPart.CreationDate > 1493574994); 354 bool newobj = (RootPart.CreationDate == 0 || RootPart.CreationDate > 1493574994);
356 SceneObjectPart[] parts = m_parts.GetArray(); 355 SceneObjectPart[] parts = m_parts.GetArray();
357 for (int i = 0; i < parts.Length; i++) 356 for (int i = 0; i < parts.Length; i++)
358 { 357 {
@@ -363,9 +362,9 @@ namespace OpenSim.Region.Framework.Scenes
363 362
364 owner &= part.AggregatedInnerOwnerPerms; 363 owner &= part.AggregatedInnerOwnerPerms;
365 group &= part.AggregatedInnerGroupPerms; 364 group &= part.AggregatedInnerGroupPerms;
366 if(propGroupOut) 365 if(newobj)
367 group &= part.AggregatedInnerGroupPerms; 366 group &= part.AggregatedInnerGroupPerms;
368 if(propAnyOut) 367 if(newobj)
369 everyone &= part.AggregatedInnerEveryonePerms; 368 everyone &= part.AggregatedInnerEveryonePerms;
370 } 369 }
371 // recover modify and move 370 // recover modify and move