livebook/lib/livebook_web/live/hooks/policy_hook.ex
2022-10-04 08:46:55 +02:00

7 lines
210 B
Elixir

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