luci-app: Fixed tools.js, ACL

This commit is contained in:
gSpot
2022-01-06 00:49:07 +03:00
parent 6756bbc2df
commit ed861c32c2
3 changed files with 59 additions and 59 deletions
@@ -202,7 +202,7 @@ return baseclass.extend({
},
load: function() {
return fs.read(this.file);
return L.resolveDefault(fs.read(this.file), '');
},
render: function(content) {
@@ -219,7 +219,7 @@ return baseclass.extend({
'wrap': 'off',
'spellcheck': 'false',
},
content || '')
content)
)
),
]),
@@ -4,7 +4,7 @@
"read": {
"cgi-io": [ "exec" ],
"file": {
"/usr/bin": [ "list" ],
"/usr/libexec/ruantiblock": [ "list" ],
"/etc/ruantiblock/fqdn_filter": [ "read" ],
"/etc/ruantiblock/ip_filter": [ "read" ],
"/etc/ruantiblock/user_entries": [ "read" ],