summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-openwisp/root/usr/share
diff options
context:
space:
mode:
authorNicholas Smith <nicholas@nbembedded.com>2021-10-30 11:57:54 +1000
committerFlorian Eckert <fe@dev.tdt.de>2022-01-12 12:21:19 +0100
commitd2f4256f152457318462f2cf27ca9df37add1c2a (patch)
treed2c3d423b19b69666a4db060d1cf0c61da96f7ee /applications/luci-app-openwisp/root/usr/share
parent919b02c169367811a5a06c94e33e4e9a0d229dec (diff)
luci-app-openwisp: inital checkin
Signed-off-by: Nicholas Smith <nicholas@nbembedded.com> - Commit heading rewritten Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications/luci-app-openwisp/root/usr/share')
-rw-r--r--applications/luci-app-openwisp/root/usr/share/luci/menu.d/luci-app-openwisp.json13
-rw-r--r--applications/luci-app-openwisp/root/usr/share/rpcd/acl.d/luci-app-openwisp.json11
2 files changed, 24 insertions, 0 deletions
diff --git a/applications/luci-app-openwisp/root/usr/share/luci/menu.d/luci-app-openwisp.json b/applications/luci-app-openwisp/root/usr/share/luci/menu.d/luci-app-openwisp.json
new file mode 100644
index 0000000000..75d13b9560
--- /dev/null
+++ b/applications/luci-app-openwisp/root/usr/share/luci/menu.d/luci-app-openwisp.json
@@ -0,0 +1,13 @@
+{
+ "admin/services/openwisp": {
+ "title": "OpenWISP",
+ "order": 90,
+ "action": {
+ "type": "view",
+ "path": "openwisp"
+ },
+ "depends": {
+ "acl": [ "luci-app-openwisp" ]
+ }
+ }
+}
diff --git a/applications/luci-app-openwisp/root/usr/share/rpcd/acl.d/luci-app-openwisp.json b/applications/luci-app-openwisp/root/usr/share/rpcd/acl.d/luci-app-openwisp.json
new file mode 100644
index 0000000000..35a3d128d0
--- /dev/null
+++ b/applications/luci-app-openwisp/root/usr/share/rpcd/acl.d/luci-app-openwisp.json
@@ -0,0 +1,11 @@
+{
+ "luci-app-openwisp": {
+ "description": "Grant access to luci-app-openwisp",
+ "read": {
+ "uci": [ "openwisp" ]
+ },
+ "write": {
+ "uci": [ "openwisp" ]
+ }
+ }
+}