Limit editing blocks based on user groups

Permalink
So I have blocks on my left and right of my website that I do not want the client to edit. I just want them to have to ability edit the middle content. Is there something in the php files I can put to restrict access based on user group?

 
jero replied on at Permalink Reply
jero
If the content is the same on every page, you could maybe put the content into a stack, and call the stack statically in the template, so that there is no editable area, but you can still change the content if you have dashboard access.

$stack = Stack::getByName('My Stack Name');
$stack->display();


You could also have a look at advanced permissions, which I believe allow you to control this sort of thing.

add this to config/site.php

define('PERMISSIONS_MODEL', 'advanced');