POLIMI-FER-codebenders / tournament_app

Tournament app for Code Defenders made by student team of POLIMI and FER students
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Team leader can't leave the team if it is the only person in the team #59

Closed SimoneMezzaro closed 1 year ago

SimoneMezzaro commented 1 year ago

If the team leader is the only person in the team we should give it the possibility to leave the team and if it does we delete the team from the database

fadlnndd commented 1 year ago

In case the team leader is not the only one in the team, should we give it the possibility to delete the team as well or not ?

SimoneMezzaro commented 1 year ago

I think it's not necessary. If the team leader wants to quit the team it can promote someone else and then leave. Once the team is empty we delete it

fadlnndd commented 1 year ago

I added the button. We need an api in backend (url: /api/team/delete/) that check if the player is leader and if he is the only one in the team. Then we need to delete the team.

ricnava00 commented 1 year ago

Fixed in #84