Copied to clipboard

Flag this post as spam?

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


  • Hans Helms 3 posts 23 karma points
    Nov 09, 2011 @ 16:43
    Hans Helms
    0

    MNTP shows permission error when it should not


    I am getting the message 'You do not have permission to view this tree' in the tree viewer when I set the start node to  a document type that I do have permission to. 

    The situation is this. I have a content tree that splits into several subtrees that are assigned to different customers. The content tree looks something like below, with different editor entering the tree at different points

    The error occurs in a specific situation, when:

    - I am logged in as user B
    - And I use the Multi Node Tree picker to pick 1 or more Reviews out of the ArticleCollection.

     

    -Content
      -customer A                      <-- User A's Start Node in Content
        - ArticleCollection
           - Article
           - Article
      
      - customer B                     <-- User B's Start Node in Content
        - ArticleCollection -> 'You do not have permission to view this tree'
           - Article
           - Article

    If I were to delete the node customer A -> ArticleCollection I would see the tree below customer B -> ArticleCollection. 

     

     

     

     

    -Content
      -customer A                      <-- User A's Start Node in Content
        - SomeCollection <- ArticleCollection is deleted
           - Item
           - Item
      
      - customer B                     <-- User B's Start Node in Content
        - ArticleCollection -> Now it shows the tree
           - Article
           - Article

    It seems to me that what happens here is that the xpath selects a set of ArticleCollection nodes, and when it finds a node that customer B does not have access to it does not continue to search for that nodes that customer B does have access to but it stops and shows an error message.

    My Umbraco version is 4.7.1
    uComponents version 2.x and 3
    The xpath I use in the MNTP config to select the items would be: //descendant-or-self::*[name() = 'ArticleCollection']

     

    The questions I have is:

    - Am I doing something wrong with the xpath? Is this expected behavior or is it a bug?
    - What can i do to fix this?

    Any help would be greatly appreciated. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft