From 1c611e7271ae7e86c023607fc918440cb9351025 Mon Sep 17 00:00:00 2001 From: kraktus <56031107+kraktus@users.noreply.github.com> Date: Wed, 8 Jul 2020 09:19:27 +0100 Subject: [PATCH] Fix notes permissions --- app/views/mod/communication.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/mod/communication.scala b/app/views/mod/communication.scala index ce10870fb4..4221baf3a6 100644 --- a/app/views/mod/communication.scala +++ b/app/views/mod/communication.scala @@ -74,7 +74,8 @@ object communication { h2("Notes from other users"), div(cls := "notes")( notes.map { note => - div(userIdLink(note.from.some), " ", momentFromNowOnce(note.date), ": ", richText(note.text)) + (isGranted(_.Doxing) || !note.dox) option + div(userIdLink(note.from.some), " ", momentFromNowOnce(note.date), ": ", richText(note.text)) } ) ),