Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I've added a custom section to my back office using the TreeController class and adding a list of sub-pages using the TreeNodeCollection.
However I'd like to restrict access to certain users/groups within my custom section and wondered how it was possible to do so?
I realise I can restrict access to certain sections, so it may be the case that I have to divide out the content into sections to restrict access.. just thought there may be a better way?
Out-of-the-box you can only restrict access to the entire custom section, not individual nodes in the trees. I guess you could do this manually when creating the tree ie. check what role the current user is in and then just don't add that node when building the tree.
Yea that's what I was thinking: Maybe writing some custom logic to check the logged in user.. but it'll be simpler to create a new section - thanks for clearing that up!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted