Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • awm 187 posts 376 karma points
    Jul 01, 2017 @ 10:19
    awm
    0

    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

  • Dan Diplo 1554 posts 6205 karma points MVP 6x c-trib
    Jul 01, 2017 @ 18:04
    Dan Diplo
    100

    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.

  • awm 187 posts 376 karma points
    Jul 01, 2017 @ 22:55
    awm
    0

    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!

Please Sign in or register to post replies

Write your reply to:

Draft