From f4c70a3c4345d9f77346d28e275eb8224c82e3b8 Mon Sep 17 00:00:00 2001 From: JakobDev Date: Tue, 19 Nov 2024 19:17:46 +0100 Subject: [PATCH] Fix regression from #4753 --- templates/repo/commit_page.tmpl | 4 ++-- tests/integration/repo_git_note_test.go | 28 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 2 deletions(-) diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index 28b7bfc89c..c7361663b2 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -278,9 +278,9 @@ {{.NoteCommit.Author.Name}} {{end}} {{DateUtils.TimeSince .NoteCommit.Author.When}} - {{if or ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}} + {{if and ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}}
- +