mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-16 21:05:38 +08:00
7 lines
209 B
Elixir
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
|