summaryrefslogtreecommitdiff
path: root/lib/lsg_web/context_plug.ex
diff options
context:
space:
mode:
authorhref <href@random.sh>2021-09-07 16:14:28 +0200
committerhref <href@random.sh>2021-09-07 16:14:28 +0200
commit04062d5f2985c7fe8c0b2e3998a8886b5b99813b (patch)
tree164691a075be0de030d1d11f709407be9c8c4479 /lib/lsg_web/context_plug.ex
parentassets update (diff)
Fixes
Diffstat (limited to 'lib/lsg_web/context_plug.ex')
-rw-r--r--lib/lsg_web/context_plug.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lsg_web/context_plug.ex b/lib/lsg_web/context_plug.ex
index 29eab28..aaf851e 100644
--- a/lib/lsg_web/context_plug.ex
+++ b/lib/lsg_web/context_plug.ex
@@ -10,6 +10,7 @@ defmodule LSGWeb.ContextPlug do
cond do
get_session(conn, :account) -> get_session(conn, :account)
get_session(conn, :oidc_id) -> if account = IRC.Account.find_meta_account("identity-id", get_session(conn, :oidc_id)), do: account.id
+ true -> nil
end
end