Fix #2298
This commit is contained in:
parent
5f5f6c7cd5
commit
d3b62980f7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue