Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-1038

Add functionality to disable delete or move buttons on a component

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 5.0
    • None
    • page editor
    • None

      Hi guys,

      in our current Magnolia project we need to restrict the permission to delete an existing paragraph.
      Users with a special role shall be allowed to edit an existing paragraph, but not to delete it.

      In Magnolia versions prior to 4.5 it was possible to simply hide the "Delete" button by specifying an empty "deleteLabel" property in the <cms:editBar> depending on the current user role.
      Looking into the source code of the new <cms:component> tag, we could not find a similar approach to restrict the appearance or the functionality of the "Delete" button.

      Any hint would be helpful!

      Best regards,
      Daniel

        Acceptance criteria

              rkovarik Roman Kovařík
              rkovarik Roman Kovařík
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD