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

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0
    • Component/s: rendering, templating
    • Labels:
      None
    • Magnolia Release:
      5.0

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: