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; } $objCte = ContentModel::findByPk($dc->id); if ($objCte === null) { return; } if ($objCte->type == ModalElementController::TYPE) { Message::addInfo(sprintf($GLOBALS['TL_LANG']['tl_content']['includeTemplate'], 'j_jbox')); } } }