Closed Xen-sits closed 3 years ago
The button showing logic is here: https://github.com/climu/openstudyroom/blob/9cc5f99a1824b8fb72dafbbab8a7f316f4194e04/league/templates/league/results.html#L57-L59
and can_quit
is rendered here:
https://github.com/climu/openstudyroom/blob/9cc5f99a1824b8fb72dafbbab8a7f316f4194e04/league/models.py#L234-L256
can_quit
will be false when a player has played a game (rightfully). I was lazy to just use that.
Maybe we have a user.is_in(division)
somewhere to use in the template?
@climu , @LucasBertrand League members can't edit their markdown. It works with admin privileges.