bug fix: wrong enabled check

httptests
UbitUmarov 2017-01-27 13:10:57 +00:00
parent 56e3aaefde
commit 4b9c94a3aa
2 changed files with 2 additions and 8 deletions

View File

@ -349,9 +349,6 @@ namespace OpenSim.Region.CoreModules.World.Permissions
if (!m_Enabled)
return;
if(scene != m_scene)
return;
m_scene.UnregisterModuleInterface<IPermissionsModule>(this);
scenePermissions.OnBypassPermissions -= BypassPermissions;

View File

@ -78,9 +78,8 @@ namespace OpenSim.Region.OptionalModules
public void AddRegion(Scene scene)
{
if (!m_enabled)
{
return;
}
m_scene = scene;
scene.Permissions.OnRezObject += CanRezObject;
scene.Permissions.OnObjectEntry += CanObjectEnter;
@ -91,10 +90,8 @@ namespace OpenSim.Region.OptionalModules
public void RemoveRegion(Scene scene)
{
if (m_enabled)
{
if (!m_enabled)
return;
}
m_scene.Permissions.OnRezObject -= CanRezObject;
m_scene.Permissions.OnObjectEntry -= CanObjectEnter;