Skip to content

Commit b4a9a12

Browse files
committed
Only consider global bans for lobby server bans
(fixes #222)
1 parent a05584a commit b4a9a12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
DROP VIEW `lobby_ban`;
2+
3+
CREATE VIEW `lobby_ban` AS
4+
SELECT `ban`.`player_id` AS `idUser`,
5+
`ban`.`reason` AS `reason`,
6+
coalesce(`ban`.`revoke_time`, `ban`.`expires_at`, cast('2999-12-31' as date)) AS `expires_at`
7+
FROM `ban`
8+
WHERE (`ban`.`level` = 'GLOBAL');

0 commit comments

Comments
 (0)