luci-app-acl: unset read and write before acl set 5158/head
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 30 Jun 2021 12:58:14 +0000 (14:58 +0200)
committerFlorian Eckert <fe@dev.tdt.de>
Thu, 1 Jul 2021 06:13:35 +0000 (08:13 +0200)
commitf4e8fcb6b53780bd2d126b22a89c379cd7c071d7
treed7d3b94a6b0ccc1c3c93cff7cbb732501026207e
parent81c26a8eb38a0a8f78d0d51e4b5705d0c65a0114
luci-app-acl: unset read and write before acl set

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 <fe@dev.tdt.de>
applications/luci-app-acl/htdocs/luci-static/resources/view/system/acl.js