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() { load: function() {
return fs.read(this.file); return L.resolveDefault(fs.read(this.file), '');
}, },
render: function(content) { render: function(content) {
@@ -219,7 +219,7 @@ return baseclass.extend({
'wrap': 'off', 'wrap': 'off',
'spellcheck': 'false', 'spellcheck': 'false',
}, },
content || '') content)
) )
), ),
]), ]),
@@ -4,7 +4,7 @@
"read": { "read": {
"cgi-io": [ "exec" ], "cgi-io": [ "exec" ],
"file": { "file": {
"/usr/bin": [ "list" ], "/usr/libexec/ruantiblock": [ "list" ],
"/etc/ruantiblock/fqdn_filter": [ "read" ], "/etc/ruantiblock/fqdn_filter": [ "read" ],
"/etc/ruantiblock/ip_filter": [ "read" ], "/etc/ruantiblock/ip_filter": [ "read" ],
"/etc/ruantiblock/user_entries": [ "read" ], "/etc/ruantiblock/user_entries": [ "read" ],