aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 8ec3b81..d79a7f1 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -1363,6 +1363,9 @@ namespace OpenSim.Region.Framework.Scenes
1363 remoteClient.SendAgentAlertMessage("Item saved", false); 1363 remoteClient.SendAgentAlertMessage("Item saved", false);
1364 } 1364 }
1365 1365
1366 // Base ALWAYS has move
1367 currentItem.BasePermissions |= (uint)PermissionMask.Move;
1368
1366 // Check if we're allowed to mess with permissions 1369 // Check if we're allowed to mess with permissions
1367 if (!Permissions.IsGod(remoteClient.AgentId)) // Not a god 1370 if (!Permissions.IsGod(remoteClient.AgentId)) // Not a god
1368 { 1371 {
@@ -1379,18 +1382,18 @@ namespace OpenSim.Region.Framework.Scenes
1379 { 1382 {
1380 // Owner can't change base, and can change other 1383 // Owner can't change base, and can change other
1381 // only up to base 1384 // only up to base
1382 // Base ALWAYS has move
1383 currentItem.BasePermissions |= (uint)PermissionMask.Move;
1384 itemInfo.BasePermissions = currentItem.BasePermissions; 1385 itemInfo.BasePermissions = currentItem.BasePermissions;
1385 itemInfo.EveryonePermissions &= currentItem.BasePermissions; 1386 itemInfo.EveryonePermissions &= currentItem.BasePermissions;
1386 itemInfo.GroupPermissions &= currentItem.BasePermissions; 1387 itemInfo.GroupPermissions &= currentItem.BasePermissions;
1387 itemInfo.CurrentPermissions &= currentItem.BasePermissions; 1388 itemInfo.CurrentPermissions &= currentItem.BasePermissions;
1388 itemInfo.NextPermissions &= currentItem.BasePermissions; 1389 itemInfo.NextPermissions &= currentItem.BasePermissions;
1389 // Next ALWAYS has move
1390 itemInfo.NextPermissions |= (uint)PermissionMask.Move;
1391 } 1390 }
1392 1391
1393 } 1392 }
1393
1394 // Next ALWAYS has move
1395 itemInfo.NextPermissions |= (uint)PermissionMask.Move;
1396
1394 if (part.Inventory.UpdateInventoryItem(itemInfo)) 1397 if (part.Inventory.UpdateInventoryItem(itemInfo))
1395 { 1398 {
1396 part.GetProperties(remoteClient); 1399 part.GetProperties(remoteClient);