From 95d76f6d222a3ee95f19a3e03b581d259dad9f41 Mon Sep 17 00:00:00 2001 From: Henry Johnson Date: Fri, 26 Feb 2016 16:13:02 -0500 Subject: [PATCH] Fixed syntax error --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {