完善翻译

This commit is contained in:
undefined committed 2020-06-20 12:05:44 +08:00
1 parent 7d3bdc2dd1
commit 2d3cee7753
13 files changed
+1308 -1280

No files matched your search

+2 -2
View File
@@ -127,9 +127,9 @@ class RecordMainConnectionHandler extends RecordConnectionHandler {
// eslint-disable-next-line prefer-const
let [udoc, pdoc] = await Promise.all([
user.getById(this.domainId, rdoc.uid),
problem.get(this.domainId, rdoc.pid),
problem.get(this.domainId, rdoc.pid, null, false),
]);
if (pdoc.hidden && !this.user.hasPerm(PERM_VIEW_PROBLEM_HIDDEN)) pdoc = null;
if (pdoc && pdoc.hidden && !this.user.hasPerm(PERM_VIEW_PROBLEM_HIDDEN)) pdoc = null;
this.send({ html: await this.renderHTML('record_main_tr.html', { rdoc, udoc, pdoc }) });
}
}