mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Restrict inventory items added in a transaction to folder belonging
to the connected client.
This commit is contained in:
@@ -834,6 +834,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId))
|
||||
return;
|
||||
|
||||
InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId);
|
||||
InventoryFolderBase folder = InventoryService.GetFolder(f);
|
||||
|
||||
if (folder == null || folder.Owner != remoteClient.AgentId)
|
||||
return;
|
||||
|
||||
if (transactionID == UUID.Zero)
|
||||
{
|
||||
ScenePresence presence;
|
||||
|
||||
Reference in New Issue
Block a user