Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

SUPEE-6788 #225

Open
Schrank opened this issue Nov 7, 2015 · 0 comments
Open

SUPEE-6788 #225

Schrank opened this issue Nov 7, 2015 · 0 comments

Comments

@Schrank
Copy link
Member

Schrank commented Nov 7, 2015

In case you need to maintain this no longer maintained extension:

Create your own extension, use following code to whitelist cms blocks in emails.

<?php
/** @var $installer Mage_Catalog_Model_Resource_Setup */
$installer = $this;
$installer->startSetup();

// Make sure the upgrade is not performed on legacy installations with tables missing
$adminVersion = Mage::getConfig()->getModuleConfig('Mage_Admin')->version;
if (version_compare($adminVersion, '1.6.1.1', '>')) {
    $connection = $installer->getConnection();
    //---------------------------------------------------
    // Add blocks
    //---------------------------------------------------
    $table = $installer->getTable('admin/permission_block');
    if ($table) {
        $blockNames = array(
            "cms/block",
            "germansetup/imprint_field",
            "germansetup/imprint_content",
        );

        foreach ($blockNames as $blockName) {
            $connection->insertIgnore(
                $table,
                array(
                    'block_name' => $blockName,
                    'is_allowed' => 1,
                )
            );
        }
    }
}
$installer->endSetup();

@firegento firegento locked and limited conversation to collaborators Nov 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant