From 4ea5b023d7cacbbc3d3dadc2c159df33b5799e31 Mon Sep 17 00:00:00 2001 From: Alexei Bezborodov Date: Sun, 3 Dec 2023 18:38:47 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20"=D0=B8?= =?UTF-8?q?=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BE?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5?= =?UTF-8?q?=D0=BB=D0=B5"=20=D0=B2=D0=BD=D0=BE=D0=B2=D1=8C=20=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BD=D1=83=D0=BB=D0=B0=D1=81=D1=8C=20=D0=B2=20=D0=BE?= =?UTF-8?q?=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B8=20?= =?UTF-8?q?=D1=83=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=B8=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D1=82=D0=BE=D1=80=D0=B0=20=D0=B7=D0=B0=D0=BA=D0=B0=D0=B7?= =?UTF-8?q?=D0=B0=20#24?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot_modules/all_orders.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bot_modules/all_orders.py b/bot_modules/all_orders.py index f3c8f09..99a8107 100644 --- a/bot_modules/all_orders.py +++ b/bot_modules/all_orders.py @@ -250,11 +250,11 @@ class ModuleAllOrders(orders.ModuleOrders): keyboard.InlineButtonWithAccess(self.GetButton(ButtonNames.SEND_USER_MESSAGE), user_message_mod.GetAddPrefix(), user_id, user_message_mod.GetAccess(), user_access.AccessMode.ADD), ] - #users_mod = self.GetModule(users.module_name) - #if users_mod: - # cur_buttons += [ - # keyboard.InlineButtonWithAccess(self.GetButton(ButtonNames.SHOW_USER_INFO), users_mod.GetShowPrefix(), user_id, users_mod.GetAccess(), user_access.AccessMode.VIEW), - # ] + users_mod = self.GetModule(users.module_name) + if users_mod: + cur_buttons += [ + keyboard.InlineButtonWithAccess(self.GetButton(ButtonNames.SHOW_USER_INFO), users_mod.GetShowPrefix(), user_id, users_mod.GetAccess(), user_access.AccessMode.VIEW), + ] return keyboard.MakeInlineKeyboardButtons(self.m_Bot, cur_buttons, a_UserGroups)