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