From 2b87ea0fc2eef6ce87fae13ebae8416b895a3394 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 7 Jul 2021 16:48:09 +0200 Subject: [PATCH] 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) --- .../htdocs/luci-static/resources/view/system/acl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; } -- 2.30.2