IntegrateWeb.AuthRequiredUnlessNoUsersPlug (IntegrateDB v0.1.0) View Source

Ensures that we have a conn.assigns[:current_user].

If not, returns a 401 response with a JSON error payload.

Unless there are no users yet -- which is the case when creating the first root user.

Link to this section Summary

Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.

Link to this section Functions

Callback implementation for Plug.call/2.

Callback implementation for Plug.init/1.