tg icon indicating copy to clipboard operation
tg copied to clipboard

User Role: deactivation of roles should check for existence of active users

Open 01es opened this issue 6 years ago • 0 comments

Description

It should not be possible to deactivate UserRole instance that are associated with active users.

UserRoles are associated with users via UserAndRoleAssociation, which models many-2-many association and is not activatable. A user is associated with a role if a corresponding instance UserAndRoleAssociation exists. The validation logic for deactivation of user roles should take this specificity into account.

Expected outcome

User roles deactivation to be aligned with the use of UserAndRoleAssociation for managing user-role associations.

01es avatar Feb 18 '19 04:02 01es