Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1220

Make nuxeo-delete-document-button available when Remove permission is granted, not Write

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.32
    • Component/s: UI

      Description

      At https://github.com/nuxeo/nuxeo-ui-elements/blob/maintenance-2.4.x/actions/nuxeo-delete-document-button.html#L117 we can see that the code test the Write permission instead of Remove.

      It means that if one defines a permission which contains Write but not remove, as described at https://doc.nuxeo.com/nxdoc/how-to-grant-the-edit-permission-without-the-remove-permission/, the Delete button will be displayed for people with this permission whereas it should not.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h