mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
mantis 9036: do not allow attach of coalesced inventory assets
This commit is contained in:
@@ -118,6 +118,17 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
|
||||
return;
|
||||
|
||||
m_invAccessModule = m_scene.RequestModuleInterface<IInventoryAccessModule>();
|
||||
if(m_invAccessModule is null)
|
||||
{
|
||||
Enabled = false;
|
||||
m_scene.UnregisterModuleInterface<IAttachmentsModule>(this);
|
||||
m_scene.EventManager.OnNewClient -= SubscribeToClientEvents;
|
||||
m_scene.EventManager.OnStartScript -= OnScriptStarted;
|
||||
m_scene.EventManager.OnStopScript -= OnScriptStopped;
|
||||
m_log.WarnFormat("[ATTACHMENTS MODULE]: InventoryService unvailable!. Module disabled");
|
||||
return;
|
||||
}
|
||||
|
||||
m_regionConsole = scene.RequestModuleInterface<IRegionConsole>();
|
||||
if (m_regionConsole != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user