Prevent attaching things you don't own from inworld. Simple solution for a

complex issue
avinationmerge
Melanie 2011-02-21 04:02:16 +01:00
parent 5a78161e74
commit 04dc43f591
1 changed files with 7 additions and 0 deletions

View File

@ -119,6 +119,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
return;
}
if (part.OwnerID != remoteClient.AgentId) // Not ours
{
remoteClient.SendAgentAlertMessage(
"You don't have sufficient permissions to attach this object", false);
return;
}
// TODO: this short circuits multiple attachments functionality in LL viewer 2.1+ and should
// be removed when that functionality is implemented in opensim
AttachmentPt &= 0x7f;