mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
Prevent attaching things you don't own from inworld. Simple solution for a
complex issue
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user