mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 14:25:51 +01:00
add prefix "_" to "named" IDs
This commit is contained in:
@@ -46,7 +46,7 @@ function checkNoteAccess(noteId, req, res) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (noteId === 'share' && !shaca.shareIndexEnabled) {
|
||||
if (noteId === '_share' && !shaca.shareIndexEnabled) {
|
||||
res.status(403)
|
||||
.json({ message: `Accessing share index is forbidden.` });
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
module.exports = {
|
||||
SHARE_ROOT_NOTE_ID: 'share'
|
||||
SHARE_ROOT_NOTE_ID: '_share'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user