This commit is contained in:
undefined committed 2025-12-12 19:01:49 +08:00
1 parent b36b4e77e1
commit d4b5d54381
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ export function apply(ctx: Context, config: ReturnType<typeof Config>) {
ctx.on('handler/before/UserDetail', disable); ctx.on('handler/before/UserDetail', disable);
ctx.on('handler/before/UserLostPass', disable); ctx.on('handler/before/UserLostPass', disable);
ctx.on('handler/before/HomeSettings', (that) => { 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'); if (['domain', 'account'].includes(that.args.category)) throw new ForbiddenError('Not available');
}); });