Skip to content

Removing more than one role at a time from user's profile doesn't work as intended #3922

Description

@jsarnowski96

Describe the Bug

When cleaning up permissions after employee who just left the company, I was unable to remove roles assigned to him. Turns out you can't remove more than one role at a time (UPDATE: all roles at the same time. removing N-1 roles where N is a total number of assigned role, works correctly). If you try, despite success message popup none of the roles are actually removed. The only way to remove all roles from user's profile is to remove them one by one and save changes (UPDATE: or with N-1 approach mentioned above). Extremely tedious job, especially if you have multiple users to "process", who have several roles assigned. At this point task begins to grow exponentially.

I believe this bug could have been introduced during an update to current version of Bookstack, because I remember doing it in the past without any issue.

Steps to Reproduce

  1. Go to Settings -> Users
  2. Open any profile's details page
  3. Unassign more than one role and click Save button
  4. Find that profile and see that no role has been removed

Expected Behaviour

Basically remove all roles at the same time without having to save after each one.

Screenshots or Additional Context

No response

Browser Details

No response

Exact BookStack Version

v22.06.2

PHP Version

No response

Hosting Environment

Ubuntu 20.04 LTS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions