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
|
type: string
|
||||||
sort_lastonline:
|
sort_lastonline:
|
||||||
type: boolean
|
type: boolean
|
||||||
|
userCount:
|
||||||
|
type: number
|
||||||
showInviteButton:
|
showInviteButton:
|
||||||
type: boolean
|
type: boolean
|
||||||
inviteOnly:
|
inviteOnly:
|
||||||
|
|||||||
@@ -241,7 +241,7 @@ async function render(req, res, data) {
|
|||||||
filterBy.forEach(function (filter) {
|
filterBy.forEach(function (filter) {
|
||||||
data['filterBy_' + validator.escape(String(filter))] = true;
|
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) {
|
if (data.adminInviteOnly) {
|
||||||
data.showInviteButton = await privileges.users.isAdministrator(req.uid);
|
data.showInviteButton = await privileges.users.isAdministrator(req.uid);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user