From b765e3ef302a378fec7e32949c8f14aee1b5f119 Mon Sep 17 00:00:00 2001 From: Freelance Agent Date: Wed, 20 May 2026 16:29:56 +0000 Subject: [PATCH] Fix #238: Hide Edit and Delete buttons for unauthorized users on bounties page --- lib/algora_web/live/org/bounties_live.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/algora_web/live/org/bounties_live.ex b/lib/algora_web/live/org/bounties_live.ex index 9dccffbd2..407328b9e 100644 --- a/lib/algora_web/live/org/bounties_live.ex +++ b/lib/algora_web/live/org/bounties_live.ex @@ -221,6 +221,7 @@ defmodule AlgoraWeb.Org.BountiesLive do
+ <%= if @current_user_role in [:admin, :mod] do %> <.button phx-click="edit-bounty-amount" phx-value-id={bounty.id} @@ -237,6 +238,7 @@ defmodule AlgoraWeb.Org.BountiesLive do > Delete + <% end %>