Closed maciejSamerdak closed 4 years ago
Fixes multiple issues regarding deactivating users by marking them as inactive using the _isactive field in CustomUser model.
Now after deactivating a user through the admin panel, the following will happen:
The user won't be listed on the employees' list anymore
His user type will be changed to an employee and all of his privileges will be disabled
The user will be removed from all projects as both member and a manager
All of his reports will remain intact and will be displayed for his former projects
It will be impossible to pick this user as a member or manager during project creation and editing
It is also confirmed that deactivation results in disabling notifications regarding the user and an appropriate unit test has been added.
Fixes multiple issues regarding deactivating users by marking them as inactive using the _isactive field in CustomUser model.
Now after deactivating a user through the admin panel, the following will happen:
The user won't be listed on the employees' list anymore
His user type will be changed to an employee and all of his privileges will be disabled
The user will be removed from all projects as both member and a manager
All of his reports will remain intact and will be displayed for his former projects
It will be impossible to pick this user as a member or manager during project creation and editing
It is also confirmed that deactivation results in disabling notifications regarding the user and an appropriate unit test has been added.