Add some permissions checks and fixes

This commit is contained in:
Melanie Thielker
2008-10-08 02:45:23 +00:00
parent e4fc55f71e
commit c4d741180f
4 changed files with 72 additions and 11 deletions

View File

@@ -1591,9 +1591,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return;
}
doMoneyTransfer(remoteClient.AgentId, part.OwnerID, salePrice, 5000, "Object buy");
s.PerformObjectBuy(remoteClient, categoryID, localID, saleType);
if (s.PerformObjectBuy(remoteClient, categoryID, localID, saleType))
doMoneyTransfer(remoteClient.AgentId, part.OwnerID, salePrice, 5000, "Object buy");
}
}