mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-16 04:46:46 +08:00
8 lines
224 B
Elixir
8 lines
224 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, comment: true, edit: true})}
|
||
|
end
|
||
|
end
|