If the setting in the view is set to `denied`, only the read list option
is deleted. This is not correct. The write list option must also be
deleted. To ensure that the correct configuration is saved, the write
and read list options are always deleted beforehand and then rewritten.
Signed-off-by: Florian Eckert <[email protected]>
(cherry picked from commit
f4e8fcb6b53780bd2d126b22a89c379cd7c071d7)
},
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);