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