Disable upgraderoom command without developer mode enabled (#11744)
* Disable upgraderoom command without developer mode enabled Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> * Update tests Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --------- Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
bdf2ebd301
commit
255f0f59f5
2 changed files with 18 additions and 2 deletions
|
@ -149,7 +149,7 @@ export const Commands = [
|
|||
command: "upgraderoom",
|
||||
args: "<new_version>",
|
||||
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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue