mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-07 01:28:31 +02:00
Merge branch 'master' of https://github.com/NodeBB/NodeBB
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user