From 456090ae51e1dbf019e375c42c2ab1b0bf524864 Mon Sep 17 00:00:00 2001 From: Jan Date: Mon, 7 Nov 2022 22:02:28 +0100 Subject: [PATCH] add permission check --- bot/src/bot/commands/configuration/bridge.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bot/src/bot/commands/configuration/bridge.ts b/bot/src/bot/commands/configuration/bridge.ts index 2f653b1..7ad67e6 100644 --- a/bot/src/bot/commands/configuration/bridge.ts +++ b/bot/src/bot/commands/configuration/bridge.ts @@ -262,6 +262,9 @@ export default { }); } case "config": { + if (!(await isBotManager(message))) + return message.reply(NO_MANAGER_MSG); + const [_, configKey, newVal]: (string | undefined)[] = args; if (!configKey) {