get('security.helper'); // Return if the user cannot access the layout module (see #6190) if (!$security->isGranted(ContaoCorePermissions::USER_CAN_ACCESS_MODULE, 'themes') || !$security->isGranted(ContaoCorePermissions::USER_CAN_ACCESS_LAYOUTS)) { return; } $objModule = ModuleModel::findByPk($dc->id); if ($objModule === null) { return; } if ($objModule->type == ModalModuleController::TYPE) { Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_content']['includeTemplate'], 'j_jbox')); } } }