This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/controllers/admin/staff_action_logs_controller.rb

9 lines
294 B
Ruby

class Admin::StaffActionLogsController < Admin::AdminController
def index
staff_action_logs = UserHistory.staff_action_records(current_user, params.slice(:action_name, :acting_user, :target_user, :subject)).to_a
render_serialized(staff_action_logs, UserHistorySerializer)
end
end