blob: cbdd1e09b0af9433d195ef873d50ce4e619e8fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
class ModLogsController < ApplicationController
skip_authorization_check
def index
@title = 'Moderation Log'
@mod_logs = ModLogPresenter.new(params[:page])
end
def show
id = params[:id].to_i
@title = "Moderation Log Entry #{id}"
@entry = ModLogPresenter.transform_audit(
Audited::Audit.where("action != 'created' OR auditable_type = 'UserBan'").find(id)
)
end
end
|