luci-mod-system: don't make SSH tabs depend on dropbear uci
authorJo-Philipp Wich <jo@mein.io>
Sun, 26 Apr 2020 16:38:16 +0000 (18:38 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 26 Apr 2020 16:45:58 +0000 (18:45 +0200)
This prevents a situation where the tabs will be disabled by the dispatcher
once the last config section has been removed. This would allow a user to
disable SSH via the UI but not to reenable it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-mod-system/root/usr/share/luci/menu.d/luci-mod-system.json

index 90a7001b780807c47b9e6610f98c585945b8ea0d..ce67e4cdb8b60f6442731e8c46e6e21bdea2b6ae 100644 (file)
@@ -42,8 +42,7 @@
                        "path": "system/dropbear"
                },
                "depends": {
-                       "acl": [ "luci-mod-system-ssh" ],
-                       "uci": { "dropbear": true }
+                       "acl": [ "luci-mod-system-ssh" ]
                }
        },
 
@@ -55,8 +54,7 @@
                        "path": "system/sshkeys"
                },
                "depends": {
-                       "acl": [ "luci-mod-system-ssh" ],
-                       "uci": { "dropbear": true }
+                       "acl": [ "luci-mod-system-ssh" ]
                }
        },