Browse Source

fix renamed method role_in_game

testing
Burathar 4 years ago
parent
commit
9acedfc2f5
  1. 2
      app/main/routes.py

2
app/main/routes.py

@ -35,7 +35,7 @@ def create_game(): @@ -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)

Loading…
Cancel
Save