luci-base: grant uci rename permissions
authorJo-Philipp Wich <jo@mein.io>
Tue, 2 Jun 2020 15:09:50 +0000 (17:09 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 2 Jun 2020 15:09:50 +0000 (17:09 +0200)
When doing an initial wireless configuration migration, LuCI needs to
perform a series of rename calls which weren't allowed so far.

Ref: https://forum.openwrt.org/t/config-migration-endless-loop/64340
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/root/usr/share/rpcd/acl.d/luci-base.json

index bc71b31b19492978cb3ee8e405a780cdec8038a0..af9fc514e134278074cc30b403d33b0cc3e54d60 100644 (file)
@@ -27,7 +27,7 @@
                        },
                        "ubus": {
                                "file": [ "remove" ],
-                               "uci": [ "add", "apply", "confirm", "delete", "order", "set" ]
+                               "uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
                        }
                }
        },