mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +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.` });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user