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

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

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.0
    • None
    • rendering, templating
    • None

    Description

      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

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoD