Exemplo n.º 1
0
def tournament_admin_authorization(request, pk, format=None):
    return ta.has_tournament_authorization(True, pk, request)
Exemplo n.º 2
0
def fight_authorization(request, pk, format=None):
    fight = ippon.models.fight.Fight.objects.get(pk=pk)
    return ta.has_tournament_authorization([True, False], fight.team_fight.tournament.id, request)
Exemplo n.º 3
0
def tournament_staff_authorization(request, pk, format=None):
    return ta.has_tournament_authorization([True, False], pk, request)
Exemplo n.º 4
0
def team_fight_authorization(request, pk, format=None):
    team_fight = tfm.TeamFight.objects.get(pk=pk)
    return ta.has_tournament_authorization([True, False],
                                           team_fight.tournament.id, request)
Exemplo n.º 5
0
def group_authorization(request, pk, format=None):
    group = get_object_or_404(gm.Group.objects.all(), pk=pk)
    return ta.has_tournament_authorization([True, False],
                                           group.group_phase.tournament.id,
                                           request)
Exemplo n.º 6
0
def cup_phase_authorization(request, pk, format=None):
    cup_phase = get_object_or_404(cpm.CupPhase.objects.all(), pk=pk)
    return ta.has_tournament_authorization([True, False],
                                           cup_phase.tournament.id, request)
Exemplo n.º 7
0
def team_authorization(request, pk, format=None):
    team = get_object_or_404(tem.Team.objects.all(), pk=pk)
    return ta.has_tournament_authorization([True, False], team.tournament.id, request)