mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-01-10 08:57:36 +08:00
7 lines
210 B
Elixir
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
|