mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
HG: beginning of a more restrictive inventory access procedure (optional). Experimental: we'll try switching the root folder from under the viewer.
This commit is contained in:
@@ -2675,6 +2675,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
// Cache the user's name
|
||||
CacheUserName(sp, aCircuit);
|
||||
|
||||
// Let's send the Suitcase folder for incoming HG agents
|
||||
if ((aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0)
|
||||
{
|
||||
m_log.DebugFormat("[SCENE]: Sending root folder to viewer...");
|
||||
InventoryFolderBase suitcase = InventoryService.GetRootFolder(client.AgentId);
|
||||
client.SendBulkUpdateInventory(suitcase);
|
||||
}
|
||||
|
||||
EventManager.TriggerOnNewClient(client);
|
||||
if (vialogin)
|
||||
EventManager.TriggerOnClientLogin(client);
|
||||
|
||||
Reference in New Issue
Block a user