This commit is contained in:
syuilo 2018-08-18 03:36:13 +09:00 committed by GitHub
parent cd09fa5a28
commit 9f8d21b2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ export default async (ctx: Koa.Context) => {
const meta = await Meta.findOne({});
if (meta.disableRegistration) {
if (meta && meta.disableRegistration) {
if (invitationCode == null || typeof invitationCode != 'string') {
ctx.status = 400;
return;