Copied to clipboard

Flag this post as spam?

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


  • Michal 4 posts 43 karma points
    May 15, 2014 @ 08:59
    Michal
    0

    Get protected nodes

    Hi,

    I am trying to display a list of files that user can see and download. I know there is the GetProtectedNodesForRole method that returns all root media nodes. The problem is that the GetProtectedNodesForRole method returns root nodes under which can be nodes protected by a different role, so I still need to check if the user is allowed to see nodes using the HasAccess method. Is it possible to get list of all nodes that are protected by the specified role. 

    Thank you.

     

     

     

     

     

  • Richard Soeteman 4035 posts 12842 karma points MVP
    May 15, 2014 @ 15:35
    Richard Soeteman
    100

    Hi Michal,

    Currently it's Rootnodes indeed. This is because checking for every childnode also could cause some performance issues. I will see if this can be improved in a future release.

    What you can do is build the collection yourself by checking the children. and only display those who have access.

    Hope this helps for now.

    Best,

    Richard

  • Michal 4 posts 43 karma points
    May 16, 2014 @ 06:57
    Michal
    0

    Hi Richard,

    Thank you very much for your quick response.

    Michal

Please Sign in or register to post replies

Write your reply to:

Draft