When promoting/demoting a member by changing their role, they lose the role of team lead for all teams and the team’s team lead is set to null. There are two tables in the database, one for Admins and one for Team Members, so a whole new account with a new ID is created when changing their role (as is intended), however the team lead is never updated.
Change the backend service logic for promoting/demoting a member to keep track of which teams they are a team lead for, if any, and re-assign their new ID/account as team lead once the new account has been created and saved to the database.
Severity Level – High
When promoting/demoting a member by changing their role, they lose the role of team lead for all teams and the team’s team lead is set to null. There are two tables in the database, one for Admins and one for Team Members, so a whole new account with a new ID is created when changing their role (as is intended), however the team lead is never updated.
Change the backend service logic for promoting/demoting a member to keep track of which teams they are a team lead for, if any, and re-assign their new ID/account as team lead once the new account has been created and saved to the database.
Severity Level – High