mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
bug fix
This commit is contained in:
1 file changed
+1
-1
@@ -85,7 +85,7 @@ export function apply(ctx: Context, config: ReturnType<typeof Config>) {
|
||||
ctx.on('handler/before/UserDetail', disable);
|
||||
ctx.on('handler/before/UserLostPass', disable);
|
||||
ctx.on('handler/before/HomeSettings', (that) => {
|
||||
if (that.user.contestMode) return;
|
||||
if (!that.user.contestMode) return;
|
||||
if (['domain', 'account'].includes(that.args.category)) throw new ForbiddenError('Not available');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user