diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-07-07 16:48:09 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2021-07-07 17:15:37 +0200 |
commit | 9922c838cd1abcda60f4e93b89b0c52a101fc667 (patch) | |
tree | 9b5bc0b0de08f3c943a4d7d42140cab9d491ace5 /applications/luci-app-acl/htdocs/luci-static/resources/view/system | |
parent | ddedcfd146cb63fc22993cd038a278dbebf5b8a6 (diff) |
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 <jo@mein.io>
Diffstat (limited to 'applications/luci-app-acl/htdocs/luci-static/resources/view/system')
-rw-r--r-- | applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js | 6 |
1 files 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 8d1086f754..7f86a298c1 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 @@ -322,12 +322,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; } |