mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
ui: fix #107
This commit is contained in:
1 parent
b49a2fde74
commit
880bbbf56f
4 files changed
+4
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.23.16",
|
||||
"version": "2.23.17",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -502,6 +502,7 @@ export class Handler extends HandlerCommon {
|
||||
if (!this.user) this.user = await user.getById('system', 0);
|
||||
throw new NotFoundError(domainId);
|
||||
}
|
||||
this.UiContext.domainId = this.domainId;
|
||||
this.user = await user.getById(domainId, this.session.uid, this.session.scope);
|
||||
if (!this.user) {
|
||||
this.session.uid = 0;
|
||||
|
||||
Reference in new issue
Block a user