- Add the hooks file to
_add-ons/restrict_to/hooks.restrict_to.php
. - Add the
restrict_to
tags
field to your_config/bundles/member/fields.yaml
. - To restrict pages, add them to the
restrict_to
field. eg./blog
,/calendar
. They will only be allowed to edit pages that begin with this url.
If your member listing is visible, (it is by default), they can edit their own restricted pages.
You can hide the member section by changing members: true
to false
in the _admin_nav
array in settings.yaml
.
This is definitely not recommended if you are looking for actual security.