mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Again
This commit is contained in:
parent
e5ddc68424
commit
5dcf88c613
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue