Skip to content

Commit 4221371

Browse files
committed
BUGFIX:
- user roles were not sent to DCS in some cases
1 parent 46c499c commit 4221371

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/data/player.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ def __post_init__(self):
6161
p.manual, c.coalition,
6262
CASE WHEN w.player_ucid IS NOT NULL THEN TRUE ELSE FALSE END AS watchlict, p.vip
6363
FROM players p LEFT OUTER JOIN bans b ON p.ucid = b.ucid
64-
LEFT OUTER JOIN coalitions c ON p.ucid = c.player_ucid
64+
LEFT OUTER JOIN coalitions c ON p.ucid = c.player_ucid AND c.server_name = %s
6565
LEFT OUTER JOIN watchlist w ON p.ucid = w.player_ucid
6666
WHERE p.ucid = %s
6767
AND COALESCE(b.banned_until, (now() AT TIME ZONE 'utc')) >= (now() AT TIME ZONE 'utc')
68-
""", (self.ucid, ))
68+
""", (self.server.name, self.ucid))
6969
# existing member found?
7070
if cursor.rowcount == 1:
7171
row = cursor.fetchone()

0 commit comments

Comments
 (0)