Restrict inventory items added in a transaction to folder belonging
to the connected client.0.6.9-post-fixes
parent
f0dd530e76
commit
60d2eac5ee
|
@ -744,6 +744,12 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId))
|
if (!Permissions.CanCreateUserInventory(invType, remoteClient.AgentId))
|
||||||
return;
|
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)
|
if (transactionID == UUID.Zero)
|
||||||
{
|
{
|
||||||
CachedUserInfo userInfo
|
CachedUserInfo userInfo
|
||||||
|
|
Loading…
Reference in New Issue