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)