From 4a07e373ca82d4e9ecb3ed08c75bdb250de361b8 Mon Sep 17 00:00:00 2001 From: Adrian Gruntkowski Date: Mon, 30 Oct 2023 11:32:50 +0100 Subject: [PATCH] Remove unnecessary FIXME --- lib/plausible_web/live/sites.ex | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/plausible_web/live/sites.ex b/lib/plausible_web/live/sites.ex index ca889ffee..70485b0c5 100644 --- a/lib/plausible_web/live/sites.ex +++ b/lib/plausible_web/live/sites.ex @@ -29,8 +29,6 @@ defmodule PlausibleWeb.Live.Sites do Enum.count(sites.entries) > 0 end) |> assign_new(:needs_to_upgrade, fn %{user: user, sites: sites} -> - # FIXME: this should check if user is owner of _any_ site, - # not just the first one in the list user_owns_sites = Enum.any?(sites.entries, fn site -> List.first(site.memberships ++ site.invitations).role == :owner