Pārlūkot izejas kodu

fix: code linting auth.js

NGPixel 5 gadi atpakaļ
vecāks
revīzija
1b4d8142f3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      server/core/auth.js

+ 1 - 1
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}`)) {