From bf311cfe50072110e9d8d6bc6e1e630f6d2e22a3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 13 Oct 2023 09:39:58 +0100 Subject: [PATCH] Disable upgraderoom command without developer mode enabled Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/SlashCommands.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SlashCommands.tsx b/src/SlashCommands.tsx index 60e81a8d2be..f309ca4bc54 100644 --- a/src/SlashCommands.tsx +++ b/src/SlashCommands.tsx @@ -149,7 +149,7 @@ export const Commands = [ command: "upgraderoom", args: "", description: _td("slash_command|upgraderoom"), - isEnabled: (cli) => !isCurrentLocalRoom(cli), + isEnabled: (cli) => !isCurrentLocalRoom(cli) && SettingsStore.getValue("developerMode"), runFn: function (cli, roomId, threadId, args) { if (args) { const room = cli.getRoom(roomId);