diff options
Diffstat (limited to 'applications/luci-app-wireguard/root/usr')
-rw-r--r-- | applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json | 7 | ||||
-rw-r--r-- | applications/luci-app-wireguard/root/usr/share/rpcd/acl.d/luci-app-wireguard.json | 12 |
2 files changed, 16 insertions, 3 deletions
diff --git a/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json b/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json index 3652bdabb4..02cdb5e871 100644 --- a/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json +++ b/applications/luci-app-wireguard/root/usr/share/luci/menu.d/luci-app-wireguard.json @@ -3,11 +3,12 @@ "title": "WireGuard", "order": 92, "action": { - "type": "template", - "path": "wireguard" + "type": "view", + "path": "wireguard/status" }, "depends": { - "acl": [ "luci-mod-status-index" ] + "acl": [ "luci-app-wireguard" ], + "uci": { "network": true } } } } diff --git a/applications/luci-app-wireguard/root/usr/share/rpcd/acl.d/luci-app-wireguard.json b/applications/luci-app-wireguard/root/usr/share/rpcd/acl.d/luci-app-wireguard.json new file mode 100644 index 0000000000..cd38bcf8ec --- /dev/null +++ b/applications/luci-app-wireguard/root/usr/share/rpcd/acl.d/luci-app-wireguard.json @@ -0,0 +1,12 @@ +{ + "luci-app-wireguard": { + "description": "Grant access to LuCI app wireguard", + "read": { + "ubus": { + "luci.wireguard": [ + "getWgInstances" + ] + } + } + } +} |