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

Unable to preview blocks meant for authenticated users

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-beta6
    • Fix Version/s: 3.1.0-dev
    • Component/s: None
    • Labels:

      Description

      Setup:

      APP_ENV=dev
      APP_DEBUG=1
      

      Steps to reproduce:

      1. Login as admin
      2. Go to "Page" -> "site"
      3. Start creating a new Landing Page
      4. Set required fields: Title and Description ("TestLP")
      5. Add two Code Blocks with content: "Block1" and "Block2"
      6. Save Landing Page Draft
      7. Exit Landing Page editor by switching to view mode
      8. Go to Admin -> Roles -> Anonymous
      9. Delete the content/read policy from Anonymous role
      10. Logout from all siteaccesses (I recommend closing the browser and opening a new private window)
      11. Login as admin
      12. From the Dashboard click the edit button next to "TestLP" in "Drafts" section"

      Expected:

      Page is rendered correctly

      Actual:
      Page Builder does not load.

      Note:
      I've noticed that I was not authenticated as admin user in EzSystems\EzPlatformPageFieldTypeBundle\Controller\BlockController::renderAction(), but a Anonymous instead.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              marek.nocon@ez.no Marek Nocoń
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: