From 5dcf88c61381f22b408e849146c19f09c3e6a9c3 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 15 Feb 2019 21:05:00 +0100 Subject: [PATCH] Again --- telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telegrambot.py b/telegrambot.py index 9c85e180..45205277 100644 --- a/telegrambot.py +++ b/telegrambot.py @@ -427,7 +427,7 @@ def on_callback_query(bot: telegram.Bot, update: telegram.Update): return match = session.query(db.Match).filter_by(message_id=update.callback_query.message.message_id).one() if update.callback_query.data == "match_close": - if match.creator != user: + if not (match.creator == user or user.telegram_id == 25167391): bot.answer_callback_query(update.callback_query.id, show_alert=True, text=strings.MATCHMAKING.ERRORS.NOT_ADMIN)