UTDallasEPICS / Warren-Automated-Onboard

2 stars 1 forks source link

[BUG] Fix mappings after changing supervisor role #56

Closed ssamikshaa closed 1 day ago

ssamikshaa commented 1 week ago

In edit user, changing from supervisor to any other role does not remove the supervisorTaskMappings. In the frontend, the task table still shows the user to be assigned to the task.

Before changing roles from supervisor, make check to see if they still have tasks assigned to them. If they do, then prompt them to reassign tasks before changing user role.

ssamikshaa commented 1 week ago

Remove supervisor archive page since there will be no tasks that are assigned to them any longer.

TusharW4ni commented 1 day ago

Now supervisors and admins are not allowed to change their roles. The user will need to delete the user if they wanted them to have another role. Now, if you delete a supervisor the user will also need to reassign their task mappings before this is allowed.