Can't edit and save group permissions because an owner of a revision is no longer exists

Created on 12 September 2023, about 1 year ago
Updated 19 September 2023, about 1 year ago

Problem/Motivation

When the owner of one of the revisions of group permissions is no longer exists (his/her account was canceled), new revision can't be created due to the validation is required before saving the entity.

Steps to reproduce

  • Create new user who has the access to create group.
  • Login as the new user, and create new group.
  • Do any change to the group permissions from the UI and save.
  • As super admin cancel the account for the user. Choose (Delete the account and make its content belong to the Anonymous user. This action cannot be undone. Reassign its groups to the super administrator.)
  • Now as super admin, do any changes to the group permissions for the group created by the deleted user and save.
  • The new changes won't be saved and you will get error message:
    Error message
    The referenced entity (user: XXX) does not exist.

    XXX: is the ID of the user who created the group permissions.

Proposed resolution

When canceling a user, reassigns ownership of group permissions revisions created by him/her to the super user

Remaining tasks

Create a patch

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium msnassar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024