Intentionally reintroduce regression to test CI

This commit is contained in:
Adrian Gruntkowski 2024-10-31 12:41:47 +01:00
parent f05744a449
commit cdb83c1494

View File

@ -35,7 +35,8 @@ defmodule PlausibleWeb.Live.Sites do
|> assign_new(:needs_to_upgrade, fn %{current_user: current_user, sites: sites} ->
user_owns_sites =
Enum.any?(sites.entries, fn site ->
length(site.invitations) > 0 && List.first(site.invitations).role == :owner
# length(site.invitations) > 0 && List.first(site.invitations).role == :owner
List.first(site.invitations).role == :owner
end) ||
Auth.user_owns_sites?(current_user)