diff options
Diffstat (limited to 'applications/luci-app-watchcat/root')
-rw-r--r-- | applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json | 8 | ||||
-rw-r--r-- | applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json | 9 |
2 files changed, 9 insertions, 8 deletions
diff --git a/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json index 80f141acd6..720c00509d 100644 --- a/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json +++ b/applications/luci-app-watchcat/root/usr/share/luci/menu.d/luci-app-watchcat.json @@ -3,13 +3,11 @@ "title": "Watchcat", "order": 90, "action": { - "type": "cbi", - "path": "watchcat/watchcat", - "post": { "cbi.submit": true } + "type": "view", + "path": "watchcat" }, "depends": { - "acl": [ "luci-app-watchcat" ], - "uci": { "system": true } + "acl": [ "luci-app-watchcat" ] } } } diff --git a/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json b/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json index 29de34b6d3..ef306fab12 100644 --- a/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json +++ b/applications/luci-app-watchcat/root/usr/share/rpcd/acl.d/luci-app-watchcat.json @@ -1,11 +1,14 @@ { "luci-app-watchcat": { - "description": "Grant UCI access for luci-app-watchcat", + "description": "Grant access to LuCI app watchcat", "read": { - "uci": [ "system" ] + "file": { + "/usr/bin/watchcat.sh": [ "exec" ] + }, + "uci": [ "watchcat" ] }, "write": { - "uci": [ "system" ] + "uci": [ "watchcat" ] } } } |