Browse Source

Добавлена возможность редактирования доступа к модулю all_orders

order_cat
parent
commit
e571a9c740
  1. 6
      bot_modules/all_orders.py

6
bot_modules/all_orders.py

@ -4,7 +4,7 @@
# Заказы
from bot_sys import bot_bd, keyboard, user_access, bd_table
from bot_modules import mod_table_operate, mod_simple_message, orders
from bot_modules import mod_table_operate, mod_simple_message, orders, access_utils
from template import bd_item_select, bd_item_view, bd_item
# ---------------------------------------------------------
@ -113,7 +113,9 @@ class ModuleAllOrders(orders.ModuleOrders):
def GetInitBDCommands(self):
# уже сделано в ModuleUserOrders
return []
return [
access_utils.GetAccessForModuleRequest(self.GetName(), self.m_InitAccess, self.m_DefInitAccess),
]
def GetName(self):
return module_name

Loading…
Cancel
Save