Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-425

Pages App shows Dialog Actions to Users without writePermission

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 6.2.12
    • 6.2.7
    • Pages app

    Description

      Steps to reproduce

      1. Set readonly permissions for some path to a user
      2.  Login as this user, open a page with Write-Permissions in Edit Mode
      3. Navigate to a page with Read-Only-Permissions
      4. Actions like editPage are active, the dialogs may be opened, but crashes on save (as writePermissions are missing). Logs, screenshots, gifs...

      Expected results

      • Actions like editPage, editArea and editComponent should only be active for users if they have writePermissions.

       

      Actual results

      see Steps to reproduce

      Workaround

      Decorate the Pages App and set writePermissionRequired on the availability definition of the affted actions. E.g.:

       
      subApps:
        detail:
          actions:
            editPage:
              availability:
                writePermissionRequired: true

      Development notes

      Add writePermissionRequired to the corresponding edit-actions in the pages-app definition.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                ajuran Antonín Juran
                mmueller Matthias Müller
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD