do not show benchmark delete button if not an owner of benchmark
This commit is contained in:
parent
fa332a6edd
commit
3b99d621b8
@ -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}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user