From 9acedfc2f5f9584d8b90081243030798aa40e426 Mon Sep 17 00:00:00 2001 From: Burathar Date: Sat, 18 Jul 2020 01:52:16 +0200 Subject: [PATCH] fix renamed method role_in_game --- app/main/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main/routes.py b/app/main/routes.py index b4918b9..16cf60a 100644 --- a/app/main/routes.py +++ b/app/main/routes.py @@ -35,7 +35,7 @@ def create_game(): @login_required def game_dashboard(game_name): 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: return render_template('game_owner_dashboard.html', title='Game Dashboard', game=game, json=json, objective_encoder=ObjectiveMinimalEncoder, location_encoder=LocationEncoder)