oreporan / wePlayMin

WePlay - the social football managing app
0 stars 1 forks source link

user roles #22

Closed oreporan closed 8 years ago

oreporan commented 8 years ago

Each user joins the league as - Player/Invite

oreporan commented 8 years ago

This is done and tested

Yahavw commented 8 years ago

Today?

2015-10-12 16:17 GMT+03:00 oreporan notifications@github.com:

Closed #22 https://github.com/oreporan/wePlayMin/issues/22.

— Reply to this email directly or view it on GitHub https://github.com/oreporan/wePlayMin/issues/22#event-432929295.

oreporan commented 8 years ago

Ok this is actually more complex than I thought, so I'm re-opening.

Its easy to make a user choose if he is a invite or not when he joins a league. But then when he wants to join a game, how do we decide if he can?

I think the ideal way is to let a invite in when a 'normal' player has decided that he is not playing - but this is not easy to do in code...

oreporan commented 8 years ago

This is done. What will happen is this -

Everyone (invites and normal players) can decide if they are attending, but if you are a 'invite' player, then when the gameBuilder makes the teams, you are taken only after all the normal players are in the teams.

This has also been tested and working