Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-2528

PageBuilder navigation throws exception when user doesn't have permissions

    XMLWordPrintable

Details

    Description

      Steps to reproduce:

      1. Create new siteaccess, for instance, eng & nor.
      2. Add these siteaccesses to PageBuilder.
      3. Create two new sections, for instance, eng & nor.
      4. Create two folders under main node, eng & nor. Assing eng to eng section, and nor to nor section.
      5. Configure siteaccesses as following:
                eng:
                    languages: [eng-GB]
                    content:
                        tree_root:
                            location_id: __location_of_folder_created_in_previous_step__
                            excluded_uri_prefixes: [ /media, /users ]
                nor:
                    languages: [nor-NO]
                    content:
                        tree_root:
                            location_id: __location_of_folder_created_in_previous_step__
                            excluded_uri_prefixes: [ /media, /users ]
        
      6. Create the new user group which has content/read permission for eng and standard section only. Add other required permissions like login for admin panel.
      7. Create a new user, add it to the newly created group.
      8. Try to login to the admin panel using the newly created account.

      Result:

      An exception has been thrown during the rendering of a template ("User does not have access to 'read' 'content'").
      

      Expected result:
      Admin Panel should be loaded properly. Entries in PageBuilder navigation, to which current user doesn't have permissions should not be displayed.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: