change if to !== 0

v1.18.x
Barış Soner Uşaklı 6 years ago committed by GitHub
parent 5e6da27a6a
commit f45d24d351
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save