Skip to content

Node.js based forum software built for the modern web

closes #4116

barisusakli33033e3bc5e0
diff --git a/src/plugins.js b/src/plugins.js
index 30de544801..cb015cf1d1 100644
--- a/src/plugins.js
+++ b/src/plugins.js
@@ -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);
});
},