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

nuxeo-document-permissions references "Everything" permission group instead of "WriteSecurity" atomic permission

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.8
    • Fix Version/s: 3.0.9
    • Component/s: UI

      Description

      The <nuxeo-document-permissions> element checks if the user has "Everything" permission in a number of different places. (The _hasPermission function then ignores the permission passed in as an argument, and explicitly checks for the "Everything" permission group.)

      Expected Behaviour: If a user is assigned the "WriteSecurity" permission, they should be able to modify permissions on a document.

      Actual Behaviour: A user with "WriteSecurity" permission cannot modify permissions on a document (unless they also have the "Everything" permission).

      Use Case: In certain scenarios, there could be a group of delegated administrators that can perform limited operations e.g. to modify the permissions of other users, but without direct permissions themselves to write/delete the document itself. Of course, a user could assign themselves the "Everything" permission, and then do everything, but it would be a deliberate two-step process, logged in the audit history, etc.)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                1 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