gardan / eduali

HRM dashboard for ILC
1 stars 0 forks source link

The role trainer, cannot be removed from a user #198

Closed gardan closed 9 years ago

gardan commented 9 years ago

For a user all roles should work the same. The role trainer should be possible to be removed from a user. In case the user has already trainings planned, a Warring message should be given but the action should be performed.

imaximix commented 9 years ago

A warning message saying what? what should happen to the training, and the lessons?

imaximix commented 9 years ago

As we are on the subject, what should happen in general, because deleting a trainer from the table or just removing the trainer role should do the same thing. The same question applies.

gardan commented 9 years ago

In Settings,we can have users with all kind of roles. Deleting a role like trainer for a user from Settings should work the same as deleting any other self made role like Sales for example. When deleting the role trainer the user should not be deleted. When deleting the trainer from the Trainers table, automatically its subject and the corresponding user should be deleted. The warrning message when trying to delete the role trainer from Settings for a trainer that has trainings already should say"This trainer has been planned for trainings. Are you sure you want to delete the trainer role for this user?"