aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs')
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs40
1 files changed, 4 insertions, 36 deletions
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index 636afac..a55936f 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -1317,48 +1317,16 @@ namespace OpenSim.Region.Framework.Scenes
1317 } 1317 }
1318 } 1318 }
1319 1319
1320 // reduce to minimal set 1320 public void AggregateInnerPerms(ref uint owner, ref uint group, ref uint everyone)
1321 public void AggregateEveryOnePerms(ref uint current)
1322 { 1321 {
1323 foreach (TaskInventoryItem item in m_items.Values) 1322 foreach (TaskInventoryItem item in m_items.Values)
1324 { 1323 {
1325 current &= item.EveryonePermissions; 1324 owner &= item.CurrentPermissions;
1326 if(current == 0) 1325 group &= item.GroupPermissions;
1327 break; 1326 everyone &= item.EveryonePermissions;
1328 }
1329 }
1330
1331 public void AggregateGroupPerms(ref uint current)
1332 {
1333 foreach (TaskInventoryItem item in m_items.Values)
1334 {
1335 current &= item.GroupPermissions;
1336 if(current == 0)
1337 break;
1338 } 1327 }
1339 } 1328 }
1340 1329
1341 public void AggregateGroupOrEveryonePerms(ref uint current)
1342 {
1343 foreach (TaskInventoryItem item in m_items.Values)
1344 {
1345 current &= (item.GroupPermissions | item.EveryonePermissions);
1346 if(current == 0)
1347 break;
1348 }
1349 }
1350
1351 public void AggregateOwnerPerms(ref uint current)
1352 {
1353 foreach (TaskInventoryItem item in m_items.Values)
1354 {
1355 current &= item.CurrentPermissions;
1356 if(current == 0)
1357 break;
1358 }
1359 }
1360
1361
1362 public uint MaskEffectivePermissions() 1330 public uint MaskEffectivePermissions()
1363 { 1331 {
1364 uint mask=0x7fffffff; 1332 uint mask=0x7fffffff;