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

Possibility to unassign single limitation from user/group

    Details

    • Type: Feature Feature
    • Status: Declined
    • Priority: High High
    • Resolution: Obsolete
    • Affects Version/s: 5.2, 5.3
    • Fix Version/s: Customer request
    • Labels:
      None
    • Environment:

      eZ Publish 5.2

      Description

      It is possible to assign limitations to users, but it is not possible to unassign one single limitation from a user.

      The only possible way to unassign limitations from users is by using $roleService->unassignRoleFromUser which removes all the existing limitations for the given user.

      A feature to unasign a single limitation from a user would be a great implementation.

        Activity

        Hide
        Gareth Arnott added a comment - - edited

        It's worth noting that when combined with this "feature", https://jira.ez.no/browse/EZP-23100, it's actually impossible to manage user roles in a database with a moderate number of assignments

        In case anybody comes across this issue and needs a quick fix; I've written a basic script to allow for command line user management: https://github.com/gazofnaz/ezpublish-HelpfulCommands/blob/master/ManageUserRolesCommand.php (the roleId for additions is a fixed parameter in this example, limitations are always assumed to be subtrees)

        Show
        Gareth Arnott added a comment - - edited It's worth noting that when combined with this "feature", https://jira.ez.no/browse/EZP-23100 , it's actually impossible to manage user roles in a database with a moderate number of assignments In case anybody comes across this issue and needs a quick fix; I've written a basic script to allow for command line user management: https://github.com/gazofnaz/ezpublish-HelpfulCommands/blob/master/ManageUserRolesCommand.php (the roleId for additions is a fixed parameter in this example, limitations are always assumed to be subtrees)

          People

          • Assignee:
            Unassigned
            Reporter:
            Ricardo Correia (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: