mirror of
https://github.com/openwrt/luci.git
synced 2025-12-27 03:34:57 +04:00
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>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user