mirror of https://github.com/status-im/codimd.git
Merge pull request #1460 from thinkingmachines/fix/create-note
Fix check for creating free url notes
This commit is contained in:
commit
a8da6329a8
|
@ -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')
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue