Prevent disabled editor component in editor popup

This commit is contained in:
Kijin Sung 2021-12-31 00:06:13 +09:00
parent 3925c24487
commit e3541c046b
4 changed files with 8 additions and 1 deletions

View file

@ -532,6 +532,10 @@ class editorModel extends editor
// Add configuration information
$component_info = self::getComponent($component, $site_srl);
if ($component_info->enabled !== 'Y')
{
return new BaseObject(-1, 'msg_component_is_disabled', $component);
}
$oComponent->setInfo($component_info);
self::$_loaded_component_list[$component][$editor_sequence] = $oComponent;
}