mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-06 15:42:52 +01:00
closes #4116
This commit is contained in:
@@ -164,11 +164,7 @@ var fs = require('fs'),
|
||||
});
|
||||
|
||||
// Filter out plugins with invalid paths
|
||||
async.filter(paths, function(path, next) {
|
||||
fs.access(path, fs.R_OK, function(err) {
|
||||
next(!err);
|
||||
});
|
||||
}, function(paths) {
|
||||
async.filter(paths, file.exists, function(paths) {
|
||||
next(null, paths);
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user