From f45d24d351e812c258c165ef78e887ed5282b12f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 3 Oct 2018 17:03:23 -0400 Subject: [PATCH] change if to !== 0 --- src/upgrades/1.10.2/local_login_privileges.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upgrades/1.10.2/local_login_privileges.js b/src/upgrades/1.10.2/local_login_privileges.js index 005d74afac..6b1e5cc090 100644 --- a/src/upgrades/1.10.2/local_login_privileges.js +++ b/src/upgrades/1.10.2/local_login_privileges.js @@ -6,7 +6,7 @@ module.exports = { method: function (callback) { var meta = require('../../meta'); var privileges = require('../../privileges'); - var allowLocalLogin = parseInt(meta.config.allowLocalLogin, 10) === 1; + var allowLocalLogin = parseInt(meta.config.allowLocalLogin, 10) !== 0; if (allowLocalLogin) { privileges.global.give(['local:login'], 'registered-users', callback);