Merge pull request #6951 from kraktus/notes

Fix notes permissions
pull/6955/head
Thibault Duplessis 2020-07-08 10:52:00 +02:00 committed by GitHub
commit f140c8191b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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))
}
)
),