Don't show local only notes to guest users, resolves #147

This commit is contained in:
Laura Hausmann 2023-08-28 02:22:05 +02:00
parent 6fc8415b00
commit 875bea2bca
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -19,7 +19,7 @@ export async function getNote(
const note = await query.getOne();
if (note == null) {
if (note == null || (me == null && note.localOnly)) {
throw new IdentifiableError(
"9725d0ce-ba28-4dde-95a7-2cbb2c15de24",
"No such note.",