Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-20747

unAssignUserFromUserGroup should throw BadState when 1 group left

    Details

      Description

      While removing all locations on Content makes sense, it does not make much sense on users as user groups are tied to permissions.

      So this enhancement is about:

      • Adding API doc for UserService->unAssignUserFromUserGroup() to throw BadState when trying to remove last user group
      • Change Core impl to enforce this, and update phpdoc of the other implementations
      • Add doc/bc/5.1/changes.md like in ezpublish-legacy to add a note on the bc break

        Issue Links

          Activity

          Hide
          André Rømcke added a comment -
          Show
          André Rømcke added a comment - PR ready for review: https://github.com/ezsystems/ezpublish-kernel/pull/325
          Show
          André Rømcke added a comment - Merged in https://github.com/ezsystems/ezpublish-kernel/commit/a4c875f0ad5e8b3a7b276167b189c5816a808d9b
          Hide
          Marcos Loureiro (Inactive) added a comment -

          QA Approved

          Show
          Marcos Loureiro (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Christian Bacher (Inactive)
            • 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 - 6 hours
                6h