Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Merge pull request #148 from PhlexPlexico/development
Browse files Browse the repository at this point in the history
Fix bug.
  • Loading branch information
PhlexPlexico authored Oct 19, 2019
2 parents d0477c6 + c250d6d commit a668e46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions get5/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,7 @@ def check_private_or_public(user, match, team1, team2):
raise BadRequestError("Please login before viewing this match.")
# Get team lists, and check if logged in user is part of match.
if not (user.id == match.user_id) or (config_setting(
'ADMINS_ACCESS_ALL_MATCHES') and util.lis_admin(user)) or util.is_super_admin(user):
'ADMINS_ACCESS_ALL_MATCHES') and util.is_admin(user)) or util.is_super_admin(user):
isPlayer = False
playerstats_steam = PlayerStats.query(PlayerStats.steam_id).filter_by(
match_id=match.id)
Expand All @@ -708,4 +708,4 @@ def check_private_or_public(user, match, team1, team2):
if not isPlayer:
raise BadRequestError(
"You cannot view this match as you were not a part of it!")
# End Helper Functions
# End Helper Functions

0 comments on commit a668e46

Please sign in to comment.