diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/SceneGraph.cs | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/OpenSim/Region/Environment/Scenes/SceneGraph.cs b/OpenSim/Region/Environment/Scenes/SceneGraph.cs index 18fe151..4c15da2 100644 --- a/OpenSim/Region/Environment/Scenes/SceneGraph.cs +++ b/OpenSim/Region/Environment/Scenes/SceneGraph.cs | |||
@@ -431,7 +431,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
431 | { | 431 | { |
432 | SceneObjectGroup group = (SceneObjectGroup)obj; | 432 | SceneObjectGroup group = (SceneObjectGroup)obj; |
433 | 433 | ||
434 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 434 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
435 | group.SetGroup(GroupID, remoteClient); | 435 | group.SetGroup(GroupID, remoteClient); |
436 | else | 436 | else |
437 | remoteClient.SendAgentAlertMessage("You don't have permission to set the group", false); | 437 | remoteClient.SendAgentAlertMessage("You don't have permission to set the group", false); |
@@ -455,7 +455,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
455 | if (part == null) | 455 | if (part == null) |
456 | return; | 456 | return; |
457 | 457 | ||
458 | if (!m_parentScene.ExternalChecks.ExternalChecksCanTakeObject( | 458 | if (!m_parentScene.Permissions.CanTakeObject( |
459 | part.UUID, remoteClient.AgentId)) | 459 | part.UUID, remoteClient.AgentId)) |
460 | return; | 460 | return; |
461 | 461 | ||
@@ -522,7 +522,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
522 | if (((SceneObjectGroup)obj).LocalId == objectLocalID) | 522 | if (((SceneObjectGroup)obj).LocalId == objectLocalID) |
523 | { | 523 | { |
524 | SceneObjectGroup group = (SceneObjectGroup)obj; | 524 | SceneObjectGroup group = (SceneObjectGroup)obj; |
525 | if (m_parentScene.ExternalChecks.ExternalChecksCanTakeObject(obj.UUID, remoteClient.AgentId)) | 525 | if (m_parentScene.Permissions.CanTakeObject(obj.UUID, remoteClient.AgentId)) |
526 | { | 526 | { |
527 | // If the attachment point isn't the same as the one previously used | 527 | // If the attachment point isn't the same as the one previously used |
528 | // set it's offset position = 0 so that it appears on the attachment point | 528 | // set it's offset position = 0 so that it appears on the attachment point |
@@ -1056,7 +1056,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1056 | SceneObjectGroup group = GetGroupByPrim(localID); | 1056 | SceneObjectGroup group = GetGroupByPrim(localID); |
1057 | if (group != null) | 1057 | if (group != null) |
1058 | { | 1058 | { |
1059 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1059 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1060 | { | 1060 | { |
1061 | group.Resize(scale, localID); | 1061 | group.Resize(scale, localID); |
1062 | } | 1062 | } |
@@ -1068,7 +1068,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1068 | SceneObjectGroup group = GetGroupByPrim(localID); | 1068 | SceneObjectGroup group = GetGroupByPrim(localID); |
1069 | if (group != null) | 1069 | if (group != null) |
1070 | { | 1070 | { |
1071 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1071 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1072 | { | 1072 | { |
1073 | group.GroupResize(scale, localID); | 1073 | group.GroupResize(scale, localID); |
1074 | } | 1074 | } |
@@ -1104,7 +1104,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1104 | SceneObjectGroup group = GetGroupByPrim(localID); | 1104 | SceneObjectGroup group = GetGroupByPrim(localID); |
1105 | if (group != null) | 1105 | if (group != null) |
1106 | { | 1106 | { |
1107 | if (m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(group.UUID, remoteClient.AgentId)) | 1107 | if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId)) |
1108 | { | 1108 | { |
1109 | group.UpdateSingleRotation(rot, localID); | 1109 | group.UpdateSingleRotation(rot, localID); |
1110 | } | 1110 | } |
@@ -1122,7 +1122,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1122 | SceneObjectGroup group = GetGroupByPrim(localID); | 1122 | SceneObjectGroup group = GetGroupByPrim(localID); |
1123 | if (group != null) | 1123 | if (group != null) |
1124 | { | 1124 | { |
1125 | if (m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(group.UUID, remoteClient.AgentId)) | 1125 | if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId)) |
1126 | { | 1126 | { |
1127 | group.UpdateGroupRotation(rot); | 1127 | group.UpdateGroupRotation(rot); |
1128 | } | 1128 | } |
@@ -1141,7 +1141,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1141 | SceneObjectGroup group = GetGroupByPrim(localID); | 1141 | SceneObjectGroup group = GetGroupByPrim(localID); |
1142 | if (group != null) | 1142 | if (group != null) |
1143 | { | 1143 | { |
1144 | if (m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(group.UUID, remoteClient.AgentId)) | 1144 | if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId)) |
1145 | { | 1145 | { |
1146 | group.UpdateGroupRotation(pos, rot); | 1146 | group.UpdateGroupRotation(pos, rot); |
1147 | } | 1147 | } |
@@ -1159,7 +1159,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1159 | SceneObjectGroup group = GetGroupByPrim(localID); | 1159 | SceneObjectGroup group = GetGroupByPrim(localID); |
1160 | if (group != null) | 1160 | if (group != null) |
1161 | { | 1161 | { |
1162 | if (m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(group.UUID, remoteClient.AgentId) || group.IsAttachment) | 1162 | if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId) || group.IsAttachment) |
1163 | { | 1163 | { |
1164 | group.UpdateSinglePosition(pos, localID); | 1164 | group.UpdateSinglePosition(pos, localID); |
1165 | } | 1165 | } |
@@ -1185,7 +1185,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1185 | } | 1185 | } |
1186 | else | 1186 | else |
1187 | { | 1187 | { |
1188 | if (m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(group.UUID, remoteClient.AgentId) || group.IsAttachment) | 1188 | if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId) || group.IsAttachment) |
1189 | { | 1189 | { |
1190 | group.UpdateGroupPosition(pos); | 1190 | group.UpdateGroupPosition(pos); |
1191 | } | 1191 | } |
@@ -1204,7 +1204,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1204 | SceneObjectGroup group = GetGroupByPrim(localID); | 1204 | SceneObjectGroup group = GetGroupByPrim(localID); |
1205 | if (group != null) | 1205 | if (group != null) |
1206 | { | 1206 | { |
1207 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID,remoteClient.AgentId)) | 1207 | if (m_parentScene.Permissions.CanEditObject(group.UUID,remoteClient.AgentId)) |
1208 | { | 1208 | { |
1209 | group.UpdateTextureEntry(localID, texture); | 1209 | group.UpdateTextureEntry(localID, texture); |
1210 | } | 1210 | } |
@@ -1222,7 +1222,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1222 | SceneObjectGroup group = GetGroupByPrim(localID); | 1222 | SceneObjectGroup group = GetGroupByPrim(localID); |
1223 | if (group != null) | 1223 | if (group != null) |
1224 | { | 1224 | { |
1225 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1225 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1226 | { | 1226 | { |
1227 | group.UpdatePrimFlags(localID, UsePhysics, IsTemporary, IsPhantom); | 1227 | group.UpdatePrimFlags(localID, UsePhysics, IsTemporary, IsPhantom); |
1228 | } | 1228 | } |
@@ -1241,7 +1241,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1241 | SceneObjectGroup group = GetGroupByPrim(objectID); | 1241 | SceneObjectGroup group = GetGroupByPrim(objectID); |
1242 | if (group != null) | 1242 | if (group != null) |
1243 | { | 1243 | { |
1244 | if (m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(group.UUID, remoteClient.AgentId))// && PermissionsMngr.) | 1244 | if (m_parentScene.Permissions.CanMoveObject(group.UUID, remoteClient.AgentId))// && PermissionsMngr.) |
1245 | { | 1245 | { |
1246 | group.GrabMovement(offset, pos, remoteClient); | 1246 | group.GrabMovement(offset, pos, remoteClient); |
1247 | } | 1247 | } |
@@ -1263,7 +1263,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1263 | SceneObjectGroup group = GetGroupByPrim(primLocalID); | 1263 | SceneObjectGroup group = GetGroupByPrim(primLocalID); |
1264 | if (group != null) | 1264 | if (group != null) |
1265 | { | 1265 | { |
1266 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1266 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1267 | { | 1267 | { |
1268 | group.SetPartName(Util.CleanString(name), primLocalID); | 1268 | group.SetPartName(Util.CleanString(name), primLocalID); |
1269 | group.HasGroupChanged = true; | 1269 | group.HasGroupChanged = true; |
@@ -1281,7 +1281,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1281 | SceneObjectGroup group = GetGroupByPrim(primLocalID); | 1281 | SceneObjectGroup group = GetGroupByPrim(primLocalID); |
1282 | if (group != null) | 1282 | if (group != null) |
1283 | { | 1283 | { |
1284 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1284 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1285 | { | 1285 | { |
1286 | group.SetPartDescription(Util.CleanString(description), primLocalID); | 1286 | group.SetPartDescription(Util.CleanString(description), primLocalID); |
1287 | group.HasGroupChanged = true; | 1287 | group.HasGroupChanged = true; |
@@ -1294,7 +1294,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1294 | SceneObjectGroup group = GetGroupByPrim(primLocalID); | 1294 | SceneObjectGroup group = GetGroupByPrim(primLocalID); |
1295 | if (group != null) | 1295 | if (group != null) |
1296 | { | 1296 | { |
1297 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1297 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1298 | { | 1298 | { |
1299 | SceneObjectPart part = m_parentScene.GetSceneObjectPart(primLocalID); | 1299 | SceneObjectPart part = m_parentScene.GetSceneObjectPart(primLocalID); |
1300 | part.ClickAction = Convert.ToByte(clickAction); | 1300 | part.ClickAction = Convert.ToByte(clickAction); |
@@ -1308,7 +1308,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1308 | SceneObjectGroup group = GetGroupByPrim(primLocalID); | 1308 | SceneObjectGroup group = GetGroupByPrim(primLocalID); |
1309 | if (group != null) | 1309 | if (group != null) |
1310 | { | 1310 | { |
1311 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID, remoteClient.AgentId)) | 1311 | if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) |
1312 | { | 1312 | { |
1313 | SceneObjectPart part = m_parentScene.GetSceneObjectPart(primLocalID); | 1313 | SceneObjectPart part = m_parentScene.GetSceneObjectPart(primLocalID); |
1314 | part.Material = Convert.ToByte(material); | 1314 | part.Material = Convert.ToByte(material); |
@@ -1323,7 +1323,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1323 | 1323 | ||
1324 | if (group != null) | 1324 | if (group != null) |
1325 | { | 1325 | { |
1326 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.UUID,agentID)) | 1326 | if (m_parentScene.Permissions.CanEditObject(group.UUID,agentID)) |
1327 | { | 1327 | { |
1328 | group.UpdateExtraParam(primLocalID, type, inUse, data); | 1328 | group.UpdateExtraParam(primLocalID, type, inUse, data); |
1329 | } | 1329 | } |
@@ -1340,7 +1340,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1340 | SceneObjectGroup group = GetGroupByPrim(primLocalID); | 1340 | SceneObjectGroup group = GetGroupByPrim(primLocalID); |
1341 | if (group != null) | 1341 | if (group != null) |
1342 | { | 1342 | { |
1343 | if (m_parentScene.ExternalChecks.ExternalChecksCanEditObject(group.GetPartsFullID(primLocalID), agentID)) | 1343 | if (m_parentScene.Permissions.CanEditObject(group.GetPartsFullID(primLocalID), agentID)) |
1344 | { | 1344 | { |
1345 | ObjectShapePacket.ObjectDataBlock shapeData = new ObjectShapePacket.ObjectDataBlock(); | 1345 | ObjectShapePacket.ObjectDataBlock shapeData = new ObjectShapePacket.ObjectDataBlock(); |
1346 | shapeData.ObjectLocalID = shapeBlock.ObjectLocalID; | 1346 | shapeData.ObjectLocalID = shapeBlock.ObjectLocalID; |
@@ -1612,12 +1612,12 @@ namespace OpenSim.Region.Environment.Scenes | |||
1612 | // libomv will complain about PrimFlags.JointWheel being | 1612 | // libomv will complain about PrimFlags.JointWheel being |
1613 | // deprecated, so we | 1613 | // deprecated, so we |
1614 | #pragma warning disable 0612 | 1614 | #pragma warning disable 0612 |
1615 | if (IncludeInSearch && m_parentScene.ExternalChecks.ExternalChecksCanEditObject(objid, user)) | 1615 | if (IncludeInSearch && m_parentScene.Permissions.CanEditObject(objid, user)) |
1616 | { | 1616 | { |
1617 | obj.ParentGroup.RootPart.AddFlag(PrimFlags.JointWheel); | 1617 | obj.ParentGroup.RootPart.AddFlag(PrimFlags.JointWheel); |
1618 | obj.ParentGroup.HasGroupChanged = true; | 1618 | obj.ParentGroup.HasGroupChanged = true; |
1619 | } | 1619 | } |
1620 | else if (!IncludeInSearch && m_parentScene.ExternalChecks.ExternalChecksCanMoveObject(objid,user)) | 1620 | else if (!IncludeInSearch && m_parentScene.Permissions.CanMoveObject(objid,user)) |
1621 | { | 1621 | { |
1622 | obj.ParentGroup.RootPart.RemFlag(PrimFlags.JointWheel); | 1622 | obj.ParentGroup.RootPart.RemFlag(PrimFlags.JointWheel); |
1623 | obj.ParentGroup.HasGroupChanged = true; | 1623 | obj.ParentGroup.HasGroupChanged = true; |
@@ -1665,7 +1665,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1665 | 1665 | ||
1666 | if (originPrim != null) | 1666 | if (originPrim != null) |
1667 | { | 1667 | { |
1668 | if (m_parentScene.ExternalChecks.ExternalChecksCanDuplicateObject(originPrim.Children.Count, originPrim.UUID, AgentID, originPrim.AbsolutePosition)) | 1668 | if (m_parentScene.Permissions.CanDuplicateObject(originPrim.Children.Count, originPrim.UUID, AgentID, originPrim.AbsolutePosition)) |
1669 | { | 1669 | { |
1670 | SceneObjectGroup copy = originPrim.Copy(AgentID, GroupID, true); | 1670 | SceneObjectGroup copy = originPrim.Copy(AgentID, GroupID, true); |
1671 | copy.AbsolutePosition = copy.AbsolutePosition + offset; | 1671 | copy.AbsolutePosition = copy.AbsolutePosition + offset; |