diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-18 03:36:13 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-18 03:36:13 +0900 |
| commit | 9f8d21b2bc0d3816fc82fb24e41580ae86cf31ac (patch) | |
| tree | 272777ccdd22bca35c889343f3949a9d70838b2f /src/server | |
| parent | Merge pull request #2297 from syuilo/update-readme (diff) | |
| download | sharkey-9f8d21b2bc0d3816fc82fb24e41580ae86cf31ac.tar.gz sharkey-9f8d21b2bc0d3816fc82fb24e41580ae86cf31ac.tar.bz2 sharkey-9f8d21b2bc0d3816fc82fb24e41580ae86cf31ac.zip | |
Fix #2298
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/api/private/signup.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/private/signup.ts b/src/server/api/private/signup.ts index 2bf56a9791..79e5e6ec48 100644 --- a/src/server/api/private/signup.ts +++ b/src/server/api/private/signup.ts @@ -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; |