fix: secret note should shown when logged

Signed-off-by: Innei <tukon479@gmail.com>
This commit is contained in:
Innei
2023-04-09 11:00:27 +08:00
parent df2c5414d1
commit c72d9216d4

View File

@@ -238,9 +238,10 @@ export class NoteController {
throw new CannotFindException()
}
current.text = this.noteService.checkNoteIsSecret(current)
? ''
: await this.macrosService.replaceTextMacro(current.text, current)
current.text =
!isMaster && this.noteService.checkNoteIsSecret(current)
? ''
: await this.macrosService.replaceTextMacro(current.text, current)
if (
!this.noteService.checkPasswordToAccess(current, password) &&