fix credo warning for is_owner_or_admin?
This commit is contained in:
		| @@ -40,7 +40,7 @@ | ||||
|           <%= dgettext("actions", "edit") %> | ||||
|         </.link> | ||||
|         <.link | ||||
|           :if={Contexts.is_owner_or_admin?(context, @current_user)} | ||||
|           :if={Contexts.owner_or_admin?(context, @current_user)} | ||||
|           href="#" | ||||
|           phx-click="delete" | ||||
|           phx-value-id={context.id} | ||||
|   | ||||
| @@ -24,7 +24,7 @@ | ||||
|       <%= dgettext("actions", "edit") %> | ||||
|     </.link> | ||||
|     <button | ||||
|       :if={Contexts.is_owner_or_admin?(@context, @current_user)} | ||||
|       :if={Contexts.owner_or_admin?(@context, @current_user)} | ||||
|       type="button" | ||||
|       class="btn btn-primary" | ||||
|       phx-click="delete" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user