livebook/lib/livebook_web/live/hooks/policy_hook.ex

8 lines
210 B
Elixir
Raw Normal View History

defmodule LivebookWeb.PolicyHook do
2022-10-04 14:46:55 +08:00
import Phoenix.Component
def on_mount(:private, _params, _session, socket) do
2022-08-23 14:43:45 +08:00
{:cont, socket |> assign(:policy, %{read: true, execute: true, edit: true})}
end
end