Prevent attaching things you don't own from inworld. Simple solution for a
complex issueavinationmerge
parent
5a78161e74
commit
04dc43f591
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue