diff options
Diffstat (limited to 'applications/luci-app-mosquitto')
-rw-r--r-- | applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json | 3 | ||||
-rw-r--r-- | applications/luci-app-mosquitto/root/usr/share/rpcd/acl.d/luci-app-mosquitto.json | 11 |
2 files changed, 14 insertions, 0 deletions
diff --git a/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json b/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json index 37870b3790..66f82b8820 100644 --- a/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json +++ b/applications/luci-app-mosquitto/root/usr/share/luci/menu.d/luci-app-mosquitto.json @@ -5,6 +5,9 @@ "type": "cbi", "path": "mosquitto", "post": { "cbi.submit": true } + }, + "depends": { + "acl": [ "luci-app-mosquitto" ] } } } diff --git a/applications/luci-app-mosquitto/root/usr/share/rpcd/acl.d/luci-app-mosquitto.json b/applications/luci-app-mosquitto/root/usr/share/rpcd/acl.d/luci-app-mosquitto.json new file mode 100644 index 0000000000..dd3c6f7a20 --- /dev/null +++ b/applications/luci-app-mosquitto/root/usr/share/rpcd/acl.d/luci-app-mosquitto.json @@ -0,0 +1,11 @@ +{ + "luci-app-mosquitto": { + "description": "Grant UCI access for luci-app-mosquitto", + "read": { + "uci": [ "mosquitto" ] + }, + "write": { + "uci": [ "mosquitto" ] + } + } +} |