Uploaded image for project: 'SPA Rendering Extended'
  1. SPA Rendering Extended
  2. SPARE-1

Area permission have no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Blocker
    • None
    • SPA extended

    Description

      When using SPA (extended), the area permissions have no effect.

      title: SPA Home
      dialog: magnolia-template:pages/Page
      templateScript: http://localhost:3000
      renderType: spaExtended
      class: info.magnolia.rendering.spa.renderer.SpaRenderableDefinition
      areas:
        main:
          title: Main area
          availableComponents:
            text:
              id: magnolia-template:components/Text
              roles: 
                - superuser
            list:
              id: magnolia-template:components/List
              roles:
                - superuser
                - editor
      

      No matter what role, users can edit/add the text component.

       

      When using freemarker, it works as expected.

      title: FTL Home
      dialog: magnolia-template:pages/Page
      templateScript: /magnolia-template/templates/pages/main.ftl
      renderType: site
      areas:
        main:
          title: Main area
          availableComponents:
            text:
              id: magnolia-template:components/Text
              roles: 
                - superuser
            list:
              id: magnolia-template:components/List
              roles:
                - superuser
                - editor
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              marc.johnen Marc Johnen
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD