From: Jo-Philipp Wich Date: Wed, 7 Jul 2021 14:48:09 +0000 (+0200) Subject: luci-app-acl: ensure to set read/write ACL presets as uci lists X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2b87ea0fc2eef6ce87fae13ebae8416b895a3394;p=project%2Fluci.git luci-app-acl: ensure to set read/write ACL presets as uci lists The rpcd daemon expects uci list notation for the login.read and login.write options, so ensure to set them accordingly when chosing the `full access` or `readonly` presets while configuring an account. Signed-off-by: Jo-Philipp Wich (cherry picked from commit 9922c838cd1abcda60f4e93b89b0c52a101fc667) --- diff --git a/applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js b/applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js index 618facd6e6..4d3c98d5b6 100644 --- a/applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js +++ b/applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js @@ -319,12 +319,12 @@ return view.extend({ o.write = function(section_id) { switch (this.formvalue(section_id)) { case 'write': - uci.set('rpcd', section_id, 'read', '*'); - uci.set('rpcd', section_id, 'write', '*'); + uci.set('rpcd', section_id, 'read', ['*']); + uci.set('rpcd', section_id, 'write', ['*']); break; case 'read': - uci.set('rpcd', section_id, 'read', '*'); + uci.set('rpcd', section_id, 'read', ['*']); uci.unset('rpcd', section_id, 'write'); break; }