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

Don't allow startDate = endDate when creating Permission

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.10, 3.0.10
    • Fix Version/s: 2.4.66, 3.0.15
    • Component/s: UI
    • Release Notes Summary:
      Start date must be different from end date when creating permissions.
    • Backlog priority:
      500
    • Sprint:
      UI - 2022-8, UI - 2022-9, UI COOLDOWN - 2022-08

      Description

      When creating a local permission on a document, user should not be able to select startDate and endDate as the same day.  The options for endDate should start at the following day.  If user selects same day for startDate and endDate, the permission starts and ends at the same time so it becomes useless.
      Steps to Reproduce:
      1. Login to Nuxeo Portal with Admin credentials.
      2. Navigate to a Folder and click on Permission sub tab
      3. Click "New" button.
      4. Add the user and select any rights like "Read", "Edit" ..etc and choose time frame as “Date-based”.
      4. Select from and to date as current date and click create.
      5. Observe the message at bottom

      Actual Result: Message at the bottom says permission created but “Permission defined locally” module doesn’t show the permission.

      Expected Result: Permission created for current date should be added.

      Since user gets message that the permission was created, they are expecting it to show in the UI. As startDate=endDate and both have a time of midnight, the permission has already expired and does not display in the UI.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 1 day, 3 hours
                  1d 3h