Merge pull request #5158 from TDT-AG/pr/20210630-luci-app-acl
luci-app-acl: some fixes
This commit is contained in:
commit
37d3b7050c
1 changed files with 3 additions and 0 deletions
|
@ -146,6 +146,9 @@ var cbiACLSelect = form.Value.extend({
|
|||
},
|
||||
|
||||
write: function(section_id, value) {
|
||||
uci.unset('rpcd', section_id, 'read');
|
||||
uci.unset('rpcd', section_id, 'write');
|
||||
|
||||
if (L.isObject(value) && Array.isArray(value.read))
|
||||
uci.set('rpcd', section_id, 'read', value.read);
|
||||
|
||||
|
|
Loading…
Reference in a new issue