luci-mod-system: drop not used setInitAction ubus luci permission
authorChristian Marangi <ansuelsmth@gmail.com>
Mon, 30 Jan 2023 22:56:21 +0000 (23:56 +0100)
committerPaul Donald <itsascambutmailmeanyway@gmail.com>
Sat, 30 Dec 2023 23:38:19 +0000 (23:38 +0000)
Drop not used setInitAction ubus luci method permission from
luci-mod-system-uhttpd and luci-mod-system-ssh. They are not used in the
related js files and should be removed as the related js doesn't
use/require them.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
modules/luci-mod-system/root/usr/share/rpcd/acl.d/luci-mod-system.json

index 4fa39613b7b1265a117d6225de258778e29d11e0..08528162449db72e51c819c86138abb0a860d2c2 100644 (file)
@@ -35,7 +35,7 @@
                        },
                        "ubus": {
                                "file": [ "write" ],
-                               "luci": [ "setInitAction", "setLocaltime" ]
+                               "luci": [ "setLocaltime" ]
                        },
                        "uci": [ "dropbear" ]
                }
@@ -47,9 +47,6 @@
                        "uci": [ "uhttpd" ]
                },
                "write": {
-                       "ubus": {
-                               "luci": [ "setInitAction" ]
-                       },
                        "uci": [ "uhttpd" ]
                }
        },