mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: training: filter by group
This commit is contained in:
3 files changed
+12
-2
No files matched your search
@@ -150,8 +150,10 @@ class TrainingDetailHandler extends Handler {
|
||||
donePids: Array.from(donePids),
|
||||
done: doneNids.size === tdoc.dag.length,
|
||||
});
|
||||
const groups = this.user.hasPerm(PERM.PERM_EDIT_DOMAIN)
|
||||
? await user.listGroup(domainId) : [];
|
||||
this.response.body = {
|
||||
tdoc, tsdoc, pids, pdict, psdict, ndict, nsdict, udoc, udict, selfPsdict,
|
||||
tdoc, tsdoc, pids, pdict, psdict, ndict, nsdict, udoc, udict, selfPsdict, groups,
|
||||
};
|
||||
this.response.body.tdoc.description = this.response.body.tdoc.description
|
||||
.replace(/\(file:\/\//g, `(./${tdoc.docId}/file/`)
|
||||
|
||||
Reference in new issue
Block a user