diff options
Diffstat (limited to 'applications/luci-app-mosquitto')
3 files changed, 18 insertions, 0 deletions
diff --git a/applications/luci-app-mosquitto/po/templates/mosquitto.pot b/applications/luci-app-mosquitto/po/templates/mosquitto.pot index 1c78b4110d..05e33c5208 100644 --- a/applications/luci-app-mosquitto/po/templates/mosquitto.pot +++ b/applications/luci-app-mosquitto/po/templates/mosquitto.pot @@ -87,6 +87,10 @@ msgstr "" msgid "Disallow remote access to this broker" msgstr "" +#: applications/luci-app-mosquitto/root/usr/share/rpcd/acl.d/luci-app-mosquitto.json:3 +msgid "Grant UCI access for luci-app-mosquitto" +msgstr "" + #: applications/luci-app-mosquitto/luasrc/model/cbi/mosquitto.lua:179 msgid "How long to wait before disconnecting" msgstr "" 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" ] + } + } +} |