mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
date notes respect their parent's isProtected status, #1483
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import utils from "./utils.js";
|
||||
import dateNoteService from "./date_notes.js";
|
||||
import hoistedNoteService from "./hoisted_note.js";
|
||||
import protectedSessionHolder from './protected_session_holder.js';
|
||||
import server from "./server.js";
|
||||
import appContext from "./app_context.js";
|
||||
import Component from "../widgets/component.js";
|
||||
@@ -69,7 +69,7 @@ export default class Entrypoints extends Component {
|
||||
title: 'new note',
|
||||
content: '',
|
||||
type: 'text',
|
||||
isProtected: inboxNote.isProtected
|
||||
isProtected: inboxNote.isProtected && protectedSessionHolder.isProtectedSessionAvailable()
|
||||
});
|
||||
|
||||
await ws.waitForMaxKnownEntityChangeId();
|
||||
|
||||
Reference in New Issue
Block a user