do not show benchmark delete button if not an owner of benchmark

This commit is contained in:
Erikas 2024-07-05 10:51:28 +03:00
parent fa332a6edd
commit 3b99d621b8

View File

@ -22,7 +22,7 @@
</div>
</div>
{{if .username}}
{{if eq .benchmark.UserID .userID }}
<a class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#exampleModal">Delete benchmark</a>
{{end}}