Show terminate to owner only

This commit is contained in:
Alex
2024-04-07 12:42:26 +02:00
parent 81523a44df
commit aede040943

View File

@@ -158,7 +158,7 @@ defmodule ClaperWeb.EventLive.EventCardComponent do
</ul>
</div>
<.link
:if={Event.started?(@event)}
:if={Event.started?(@event) && not @is_leader}
data-confirm={
gettext(
"Are you sure you want to terminate this event? This action cannot be undone."