Beispiel #1
0
def get_events(current_user):
    return EventController.all()
Beispiel #2
0
def get_event(current_user, id):
    return EventController.find(id)
Beispiel #3
0
def delete_judge_from_event(current_user, id, judge_id):

    if is_admin(current_user):
        return jsonify(unauthorized_access()), 401

    return EventController.delete_judge(id, judge_id)
Beispiel #4
0
def delete_participant_from_event(current_user, id, participant_id):

    if is_admin(current_user):
        return jsonify(unauthorized_access()), 401

    return EventController.delete_participant(id, participant_id)
Beispiel #5
0
def update_event(current_user, id):

    if is_admin(current_user):
        return jsonify(unauthorized_access()), 401

    return EventController.update(id)
Beispiel #6
0
def delete_multiple_events(current_user):

    if is_admin(current_user):
        return jsonify(unauthorized_access()), 401

    return EventController.delete_multiple()
Beispiel #7
0
def get_unassigned_participants_from_event(current_user, id):
    return EventController.get_unassigned_participants(id)
Beispiel #8
0
def get_judge_from_event(current_user, id, judge_id):
    return EventController.find_judge(id, judge_id)
Beispiel #9
0
def get_unassigned_judges_from_event(current_user, id):

    if is_admin(current_user):
        return jsonify(unauthorized_access()), 401

    return EventController.get_unassigned_judges(id)