mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix(spec): from 6e6a7a8f8a
This commit is contained in:
@@ -27,6 +27,8 @@ get:
|
||||
type: string
|
||||
sort_lastonline:
|
||||
type: boolean
|
||||
userCount:
|
||||
type: number
|
||||
showInviteButton:
|
||||
type: boolean
|
||||
inviteOnly:
|
||||
|
||||
@@ -241,7 +241,7 @@ async function render(req, res, data) {
|
||||
filterBy.forEach(function (filter) {
|
||||
data['filterBy_' + validator.escape(String(filter))] = true;
|
||||
});
|
||||
data.userCount = await db.getObjectField('global', 'userCount');
|
||||
data.userCount = parseInt(await db.getObjectField('global', 'userCount'), 10);
|
||||
if (data.adminInviteOnly) {
|
||||
data.showInviteButton = await privileges.users.isAdministrator(req.uid);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user