Browse Source

Кнопка "информация о пользователе" вновь вернулась в отображении у администратора заказа #24

master
parent
commit
4ea5b023d7
  1. 10
      bot_modules/all_orders.py

10
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)

Loading…
Cancel
Save