Sha256: 1e519919d225b3a592dfa263310e1880572a7c16e0b5f71ff01a3687504b2b00

Contents?: true

Size: 591 Bytes

Versions: 68

Compression:

Stored size: 591 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: 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

68 entries across 68 versions & 1 rubygems

Version Path
decidim-admin-0.26.10 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.9 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.5 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.8 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.4 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.3 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.7 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.5 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.2 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.1 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.4 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.0 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.3 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.0.rc2 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.27.0.rc1 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.2 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.1 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.0 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.0.rc2 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb
decidim-admin-0.26.0.rc1 app/controllers/decidim/admin/managed_users/impersonation_logs_controller.rb