# `PhoenixKitWeb.AdminEditHelper`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.165/lib/phoenix_kit_web/helpers/admin_edit_helper.ex#L1)

Universal admin edit URL helper.
Assigns admin_edit_url and admin_edit_label to conn/socket if user is admin.
Works with both Plug.Conn (controllers) and Phoenix.LiveView.Socket (LiveViews).

# `assign_admin_edit`

Assigns `:admin_edit_url` and `:admin_edit_label` if the current user is an admin.
Returns conn/socket unchanged for non-admins or unauthenticated users.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
