luci2: add acl group definition and menu entry for backup / restore / flash view
[project/luci2/ui.git] / luci2 / share / acl.d / luci2.json
index 64974e8..ca5dd3c 100644 (file)
                }
        },
 
+       "upgrade": {
+               "description": "Firmware upgrade",
+               "read": {
+                       "ubus": {
+                               "luci2.system": [
+                                       "upgrade_test",
+                                       "reset_test"
+                               ]
+                       }
+               },
+               "write": {
+                       "luci-io": [
+                               "upload"
+                       ],
+                       "ubus": {
+                               "luci2.system": [
+                                       "upgrade_start",
+                                       "upgrade_clean",
+                                       "reset_start",
+                                       "reboot"
+                               ]
+                       }
+               }
+       },
+
+       "backup": {
+               "description": "Backup and Restore",
+               "read": {
+                       "luci-io": [
+                               "backup"
+                       ],
+                       "ubus": {
+                               "luci2.system": [
+                                       "backup_config_get",
+                                       "backup_list"
+                               ]
+                       }
+               },
+               "write": {
+                       "ubus": {
+                               "luci2.system": [
+                                       "backup_clean",
+                                       "backup_config_set",
+                                       "backup_restore",
+                                       "reboot"
+                               ]
+                       }
+               }
+       },
+
        "startup": {
                "description": "System boot settings",
                "read": {