This commit is contained in:
masnn committed 2020-04-17 13:53:06 +08:00
1 parent ce3d11b999
commit b1153b641a
13 files changed
+163 -42

No files matched your search

+2
View File
@@ -54,12 +54,14 @@ class RecordDetailHandler extends Handler {
if (rdoc.uid !== this.user.uid && !this.user.hasPerm(PERM_READ_RECORD_CODE)) {
rdoc.code = null;
}
const pdoc = await problem.getById(rdoc.pid);
this.response.body = {
path: [
['Hydro', '/'],
['record_detail', null],
],
rdoc,
pdoc,
show_status: true,
};
}