This commit is contained in:
syuilo 2018-08-18 03:36:13 +09:00 committed by GitHub
parent 5f5f6c7cd5
commit d3b62980f7

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;