mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix display
This commit is contained in:
1 parent
791877098b
commit
bc4d424abf
6 files changed
+5
-6
No files matched your search
@@ -225,7 +225,7 @@ class RecordMainConnectionHandler extends ConnectionHandler {
|
||||
// eslint-disable-next-line prefer-const
|
||||
let [udoc, pdoc] = await Promise.all([
|
||||
user.getById(this.domainId, rdoc.uid),
|
||||
problem.get(this.domainId, rdoc.pid, null),
|
||||
problem.get(this.domainId, rdoc.pid),
|
||||
]);
|
||||
if (pdoc) {
|
||||
if (pdoc.hidden && !this.user.own(pdoc) && !this.user.hasPerm(PERM.PERM_VIEW_PROBLEM_HIDDEN)) pdoc = null;
|
||||
|
||||
Reference in new issue
Block a user