Uploaded image for project: 'Image Recognition'
  1. Image Recognition
  2. IMGREC-102

DAM decoration gives editing action to read-only users

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Neutral Neutral
    • None
    • 1.2.3
    • None

      Steps to reproduce

      1. Open the DAM app (decorated with the content-tags-integration decorator) using a user without write access to the DAM.
      2. See the browser sub app contains an active action, Modify Tags.
        # Click Modify Tags to open a usable dialog.

      Note:
      Decorator: https://git.magnolia-cms.com/projects/ENTERPRISE/repos/image-recognition/browse/content-tags-integration/src/main/resources/content-tags-integration/decorations/dam-assets-app/apps/dam.subApps.yaml
      To create a read-only user in the travel demo, modify the role travel-demo-tour-editor and use eric/eric.

      Expected results

      If the user cannot edit the underlying asset, the image action should not be enabled. This follows the pattern of the rest of the DAM app / Magnolia UI.

      Actual results

      1. The dialog can be opened and the tags modified.
      2. An error is thrown on attempting to save modified tags.

      Workaround

      # Decorate the decoration.
      ie. /decorations/dam-assets-app/apps/dam.yaml

      subApps: 
        jcrBrowser: 
          actions: 
            modifyTags: 
              availability: 
                writePermissionRequired: true
      

      Development notes

        Acceptance criteria

              Unassigned Unassigned
              chris.jennings Chris Jennings
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: