Skip to content

Commit

Permalink
Show terminate to owner only
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Apr 7, 2024
1 parent 81523a4 commit aede040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/claper_web/live/event_live/event_card_component.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down

0 comments on commit aede040

Please sign in to comment.