fix credo warning for is_owner?

This commit is contained in:
2024-02-23 22:18:25 -05:00
parent 2a87037f06
commit 362c406471
9 changed files with 17 additions and 17 deletions

View File

@ -33,7 +33,7 @@
>
<:actions :let={context}>
<.link
:if={Contexts.is_owner?(context, @current_user)}
:if={Contexts.owner?(context, @current_user)}
patch={~p"/contexts/#{context}/edit"}
aria-label={dgettext("actions", "edit %{context_slug}", context_slug: context.slug)}
>

View File

@ -17,7 +17,7 @@
<div class="self-end flex space-x-4">
<.link
:if={Contexts.is_owner?(@context, @current_user)}
:if={Contexts.owner?(@context, @current_user)}
class="btn btn-primary"
patch={~p"/context/#{@context}/edit"}
>