Packages

A simple Phoenix/Liveview client for [Altex](https://github.com/iboard/altex). Use it as a scaffold.

Current section

Files

Jump to
ax_webclient lib web_client_web views session_view.ex
Raw

lib/web_client_web/views/session_view.ex

defmodule WebClientWeb.SessionView do
use WebClientWeb, :view
def admin?(conn) do
case Plug.Conn.get_session(conn, :current_user) do
%{admin: true} -> true
_ -> false
end
end
end