diff --git a/lib/index.js b/lib/index.js index b88490e..542f480 100644 --- a/lib/index.js +++ b/lib/index.js @@ -52,7 +52,7 @@ exports.populateUser = function(func) { // Permissions middleware exports.requiresPerms = function(perms) { - if (perms && ! Array.isArray(perms) { + if (perms && ! Array.isArray(perms)) { perms = [ perms ]; } return function(req, res, next) {