From 1b4d8142f38863bf4f548612c8a80f004265c9ff Mon Sep 17 00:00:00 2001 From: NGPixel Date: Fri, 7 Feb 2020 22:02:33 -0500 Subject: [PATCH] fix: code linting auth.js --- server/core/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/auth.js b/server/core/auth.js index df5e018d..270039e7 100644 --- a/server/core/auth.js +++ b/server/core/auth.js @@ -173,7 +173,7 @@ module.exports = { user.groups.forEach(grp => { const grpId = _.isObject(grp) ? _.get(grp, 'id', 0) : grp _.get(WIKI.auth.groups, `${grpId}.pageRules`, []).forEach(rule => { - if(_.intersection(rule.roles, permissions).length > 0) { + if (_.intersection(rule.roles, permissions).length > 0) { switch (rule.match) { case 'START': if (_.startsWith(`/${page.path}`, `/${rule.path}`)) {