Is it possible to restrict permissions to custom sections in the backoffice?
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 it possible to restrict permissions to custom sections in the backoffice?
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?
Thanks
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...