philomena/lib/philomena_web/controllers/moderation_log_controller.ex

16 lines
462 B
Elixir
Raw Normal View History

2021-11-07 19:51:55 +01:00
defmodule PhilomenaWeb.ModerationLogController do
use PhilomenaWeb, :controller
alias Philomena.ModerationLogs
alias Philomena.ModerationLogs.ModerationLog
plug :load_and_authorize_resource,
model: ModerationLog,
preload: [:user]
def index(conn, _params) do
2024-07-16 02:43:45 +02:00
moderation_logs = ModerationLogs.list_moderation_logs(conn.assigns.scrivener)
2021-11-07 19:51:55 +01:00
render(conn, "index.html", title: "Moderation Logs", moderation_logs: moderation_logs)
end
end