Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4476

Add functionality to disable delete or move buttons on a component - 4.5

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.9
    • 4.5
    • rendering, templating
    • None
    • Yes

      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
              dknobloch Daniel Knobloch
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: