mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-09-20 07:59:03 -04:00
Merge pull request #347 from codimd/backport-345
findNoteOrCreate: Create new note with empty string instead of `null`
This commit is contained in:
commit
b79341f406
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ exports.findNote = function (req, res, callback, include) {
|
||||||
include: include || null
|
include: include || null
|
||||||
}).then(function (note) {
|
}).then(function (note) {
|
||||||
if (!note) {
|
if (!note) {
|
||||||
return exports.newNote(req, res, null)
|
return exports.newNote(req, res, '')
|
||||||
}
|
}
|
||||||
if (!exports.checkViewPermission(req, note)) {
|
if (!exports.checkViewPermission(req, note)) {
|
||||||
return errors.errorForbidden(res)
|
return errors.errorForbidden(res)
|
||||||
|
|
Loading…
Reference in a new issue