|
|
@ -35,7 +35,7 @@ def create_game(): |
|
|
|
@login_required |
|
|
|
@login_required |
|
|
|
def game_dashboard(game_name): |
|
|
|
def game_dashboard(game_name): |
|
|
|
game = Game.query.filter_by(name=game_name).first_or_404() |
|
|
|
game = Game.query.filter_by(name=game_name).first_or_404() |
|
|
|
role = current_user.get_role_for_game(game) |
|
|
|
role = current_user.role_in_game(game) |
|
|
|
if role == Role.owner: |
|
|
|
if role == Role.owner: |
|
|
|
return render_template('game_owner_dashboard.html', title='Game Dashboard', |
|
|
|
return render_template('game_owner_dashboard.html', title='Game Dashboard', |
|
|
|
game=game, json=json, objective_encoder=ObjectiveMinimalEncoder, location_encoder=LocationEncoder) |
|
|
|
game=game, json=json, objective_encoder=ObjectiveMinimalEncoder, location_encoder=LocationEncoder) |
|
|
|