brideo / Brideo_CmsPermissions

Add all directives to the white-list in Magento

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Brideo CmsPermissions Extension

Magento's SUPEE-6788 patch means that all custom variables and blocks must be added to a white-list before they can be used within content; this makes sense for security, however this can break pre-existing Magento builds.

This module is just a basic update script, it searches for pre-existing custom variables and blocks used in CMS pages and Static Blocks and adds them all to the white-list.

Sorry for how un-readable this code is, I didn't particularly enjoy writing it and highly doubt I will be re-visiting it to improve it. However it should save searching through each page/block and adding the items to the whitelist.

I may extend this in the future to make the white-list manageable from admin.

##Installation

modman clone git@github.com:brideo/Brideo_CmsPermissions.git

Copyright

(c) 2015 Brideo

About

Add all directives to the white-list in Magento


Languages

Language:PHP 100.0%