Skip to content

Commit

Permalink
#841 As admin searching for users does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
mellelieuwes committed Jun 7, 2024
1 parent dd5ea0f commit 5bd89a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/systems/admin/account_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ defmodule Systems.Admin.AccountView do
defp include?(%Account.User{creator: creator}, :creator), do: creator

defp include?(%Account.UserProfileModel{}, ""), do: true
defp include?(%Account.UserProfileModel{fullname: nil}, _), do: false

defp include?(%Account.UserProfileModel{fullname: fullname}, word) when is_binary(word) do
String.contains?(fullname |> String.downcase(), word)
Expand Down

0 comments on commit 5bd89a8

Please sign in to comment.