livebook/lib/livebook_web/live/hooks/policy_hook.ex
2022-08-23 08:43:45 +02:00

7 lines
209 B
Elixir

defmodule LivebookWeb.PolicyHook do
import Phoenix.LiveView
def on_mount(:private, _params, _session, socket) do
{:cont, socket |> assign(:policy, %{read: true, execute: true, edit: true})}
end
end