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
(c) 2015 Brideo