The project I’m currently working on is a password-protected site for the financial services industry, where accounts are managed using the Member Module. This is working fine, but the sensitivity of the site’s content leaves me worried that I’ve overlooked access restrictions on a template. Template Access Restriction is easy enough to manage via the Template Preferences Manager but, as far as I know, there’s no way to review what permissions have been set.
The attached PHP file does that. If you drop it in into a template with PHP enabled and set to output (I put my template in an “Admin” template group) and visit the URL, you’ll see a table that displays:
My goal is to get this into an extension that can be displayed in the Control Panel, as it’s a crucial administration step for me.
If anyone has a chance to drop this into their site and check it out, I’m sure some QA is warranted. Feedback is appreciated.
Mark
Updated again: Sites have no bearing on member groups & access to templates, and have been removed from the top of the table. It is now just member groups on top, templates by site/group down the left.
The first approach was actually broken for your secondary site as the site ID is ignored for member_group/template access.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.