mirror of
https://github.com/plausible/analytics.git
synced 2024-12-23 01:22:15 +03:00
Intentionally reintroduce regression to test CI
This commit is contained in:
parent
f05744a449
commit
cdb83c1494
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user