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.
1 parent 4fd6293 commit bcd92f5Copy full SHA for bcd92f5
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