From aede0409430527ffa86bfd993141085c275cb8d1 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 7 Apr 2024 12:42:26 +0200 Subject: [PATCH] Show terminate to owner only --- lib/claper_web/live/event_live/event_card_component.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/claper_web/live/event_live/event_card_component.ex b/lib/claper_web/live/event_live/event_card_component.ex index d7e13fd2..c0e39422 100644 --- a/lib/claper_web/live/event_live/event_card_component.ex +++ b/lib/claper_web/live/event_live/event_card_component.ex @@ -158,7 +158,7 @@ defmodule ClaperWeb.EventLive.EventCardComponent do <.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."