fix(spec): from 6e6a7a8f8a

v1.18.x
Julian Lam 4 years ago
parent 88a60473d9
commit acb576662e

@ -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 {

Loading…
Cancel
Save