diff --git a/lib/algora_web/live/org/bounties_live.ex b/lib/algora_web/live/org/bounties_live.ex index 9dccffbd..3048e423 100644 --- a/lib/algora_web/live/org/bounties_live.ex +++ b/lib/algora_web/live/org/bounties_live.ex @@ -221,22 +221,24 @@ defmodule AlgoraWeb.Org.BountiesLive do
- <.button - phx-click="edit-bounty-amount" - phx-value-id={bounty.id} - variant="secondary" - size="sm" - > - Edit Amount - - <.button - phx-click="delete-bounty" - phx-value-id={bounty.id} - variant="destructive" - size="sm" - > - Delete - + <%= if @current_user_role in [:admin, :mod] do %> + <.button + phx-click="edit-bounty-amount" + phx-value-id={bounty.id} + variant="secondary" + size="sm" + > + Edit Amount + + <.button + phx-click="delete-bounty" + phx-value-id={bounty.id} + variant="destructive" + size="sm" + > + Delete + + <% end %>