From 987b64c808055b28edf8a1d139d3949e760d9b8d Mon Sep 17 00:00:00 2001 From: Alexei Date: Mon, 1 May 2023 15:47:30 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D1=81=D1=82=D1=83=D0=BF=20=D0=BA?= =?UTF-8?q?=20=D0=BC=D0=BE=D0=B4=D1=83=D0=BB=D1=8E=20=D1=81=20=D1=8F=D0=B7?= =?UTF-8?q?=D1=8B=D0=BA=D0=B0=D0=BC=D0=B8=20=D0=B8=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8E=20=D0=BE=D1=82=D0=BA=D0=BB?= =?UTF-8?q?=D1=8E=D1=87=D0=B5=D0=BD=20=D0=B4=D0=BB=D1=8F=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D1=8B=D1=85=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2?= =?UTF-8?q?=D0=B0=D1=82=D0=B5=D0=BB=D0=B5=D0=B9.=20=D0=94=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D1=83=D0=BF=D0=B5=D0=BD=20=D1=82=D0=BE=D0=BB=D1=8C=D0=BA?= =?UTF-8?q?=D0=BE=20=D0=B4=D0=BB=D1=8F=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD?= =?UTF-8?q?=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot_modules/languages.py | 2 +- bot_modules/messages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bot_modules/languages.py b/bot_modules/languages.py index 0d57b88..250111f 100644 --- a/bot_modules/languages.py +++ b/bot_modules/languages.py @@ -52,7 +52,7 @@ init_bd_cmds = [f'''CREATE TABLE IF NOT EXISTS {table_name}( UNIQUE({key_name}), UNIQUE({name_field}) )''', -f"INSERT OR IGNORE INTO module_access (modName, modAccess, itemDefaultAccess) VALUES ('{module_name}', '{user_access.user_access_group_new}=va', '{user_access.user_access_group_new}=va');" +f"INSERT OR IGNORE INTO module_access (modName, modAccess, itemDefaultAccess) VALUES ('{module_name}', '{user_access.user_access_group_all}=-', '{user_access.user_access_group_all}=-');" ] # --------------------------------------------------------- diff --git a/bot_modules/messages.py b/bot_modules/messages.py index ca2d763..ccf9fad 100644 --- a/bot_modules/messages.py +++ b/bot_modules/messages.py @@ -58,7 +58,7 @@ init_bd_cmds = [f'''CREATE TABLE IF NOT EXISTS {table_name}( UNIQUE({key_name}), UNIQUE({name_field}, {parent_id_field}) )''', -f"INSERT OR IGNORE INTO module_access (modName, modAccess, itemDefaultAccess) VALUES ('{module_name}', '{user_access.user_access_group_new}=va', '{user_access.user_access_group_new}=va');" +f"INSERT OR IGNORE INTO module_access (modName, modAccess, itemDefaultAccess) VALUES ('{module_name}', '{user_access.user_access_group_all}=-', '{user_access.user_access_group_all}=-');" ] select_messages_prefix = ''