Sha256: 2997c037c06dd9ece01f68c77958c358cc000359d564b41ef212e38c79a8c2f0
Contents?: true
Size: 586 Bytes
Versions: 3
Compression:
Stored size: 586 Bytes
Contents
# frozen_string_literal: true module Decidim module Admin module ManagedUsers # Controller that allows inspecting impersonation logs # class ImpersonationLogsController < Decidim::Admin::ApplicationController layout "decidim/admin/users" def index @impersonation_logs = Decidim::ImpersonationLog.where(user:).order(started_at: :desc).page(params[:page]).per(15) end private def user @user ||= current_organization.users.find(params[:impersonatable_user_id]) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems