mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 22:50:58 +00:00
luci-app: Fixed tools.js, ACL
This commit is contained in:
@@ -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" ],
|
||||||
|
|||||||
Reference in New Issue
Block a user