mirror of
https://github.com/SrIzan10/hc-identity-vault.git
synced 2026-05-01 10:45:20 +00:00
13 lines
346 B
Ruby
13 lines
346 B
Ruby
module Backend
|
|
class AuditLogsController < ApplicationController
|
|
skip_after_action :verify_authorized
|
|
|
|
def index
|
|
scope = PublicActivity::Activity.order(created_at: :desc)
|
|
scope = scope.where(owner_type: "Backend::User") if params[:admin_actions_only]
|
|
|
|
@activities = scope.page(params[:page]).per(50)
|
|
end
|
|
end
|
|
end
|