core: UserModel.getListForRender: support extra fields

This commit is contained in:
undefined committed 2024-08-12 02:46:02 +08:00
1 parent f86b8f99f8
commit c171c06dec
5 files changed
+19 -11

No files matched your search

+1 -1
View File
@@ -960,7 +960,7 @@ export class ProblemStatisticsHandler extends ProblemDetailHandler {
'record',
);
const [udict, udoc] = await Promise.all([
user.getListForRender(domainId, rsdocs.map((i) => i.uid), this.user.hasPerm(PERM.PERM_VIEW_DISPLAYNAME)),
user.getListForRender(domainId, rsdocs.map((i) => i.uid), this.user.hasPerm(PERM.PERM_VIEW_DISPLAYNAME) ? ['displayName'] : []),
user.getById(domainId, this.pdoc.owner),
]);
this.response.template = 'problem_statistics.html';