Fix #2298
This commit is contained in:
parent
cd09fa5a28
commit
9f8d21b2bc
|
@ -34,7 +34,7 @@ export default async (ctx: Koa.Context) => {
|
||||||
|
|
||||||
const meta = await Meta.findOne({});
|
const meta = await Meta.findOne({});
|
||||||
|
|
||||||
if (meta.disableRegistration) {
|
if (meta && meta.disableRegistration) {
|
||||||
if (invitationCode == null || typeof invitationCode != 'string') {
|
if (invitationCode == null || typeof invitationCode != 'string') {
|
||||||
ctx.status = 400;
|
ctx.status = 400;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue