2
0
mirror of https://github.com/status-im/codimd.git synced 2025-02-17 20:36:40 +00:00

Merge pull request from thinkingmachines/fix/create-note

Fix check for creating free url notes
This commit is contained in:
Raccoon 2020-03-26 05:15:07 +08:00 committed by GitHub
commit a8da6329a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -34,7 +34,7 @@ async function getNoteById (noteId, { includeUser } = { includeUser: false }) {
}
async function createNote (userId, noteAlias) {
if (!config.allowAnonymous && !!userId) {
if (!config.allowAnonymous && !userId) {
throw new Error('can not create note')
}