Allow multiple identities (accounts actors) for one user.
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -92,7 +92,7 @@ defmodule EventosWeb.UserController do
|
||||
def show_current_actor(conn, _params) do
|
||||
user = conn
|
||||
|> Guardian.Plug.current_resource()
|
||||
|> Repo.preload(:actor)
|
||||
|> Repo.preload(:actors)
|
||||
render(conn, "show_simple.json", user: user)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user