We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4fd6293 + bcd92f5 commit a6c7582Copy full SHA for a6c7582
lib/note/index.js
@@ -61,6 +61,8 @@ async function showNote (req, res) {
61
// if allow free url enable, auto create note
62
if (!config.allowFreeURL || config.forbiddenNoteIDs.includes(noteId)) {
63
return errorNotFound(req, res)
64
+ } else if (!config.allowAnonymous && !userId) {
65
+ return errorForbidden(req, res)
66
}
67
note = await createNote(userId, noteId)
68
0 commit comments