Uploaded image for project: 'Ibexa IBX'
  1. Ibexa IBX
  2. IBX-7106

Cannot load content types on in admin panel when restricted path: ^/api/ibexa/v2/content, roles: ROLE_USER

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Customer request, 4.5.4
    • 4.5.5
    • None
    • Yes

    Description

      Steps to reproduce:

      1. Install ibexa
      2. Add to security.yaml
            access_control:
                - { path: ^/api/ibexa/v2/content, roles: ROLE_USER }
        
      1. Login to the admin panel
      2. Open Content Structure tab

      Result:
      Cannot load content types error occurs.

      Expected result:
      Admin panel working normally

      Info:
      The error occurs because of the request to api/ibexa/v2/content/types. The request is missing the header: 'X-Siteaccess': 'admin' as other requests send to API has the header.

      Designs

        Attachments

          Activity

            People

              Unassigned Unassigned
              pawel.pawlik@ibexa.co Paweł Pawlik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: