Class: Decidim::Admin::ImpersonatableUsersController
- Inherits:
-
ApplicationController
- Object
- DecidimController
- ApplicationController
- Decidim::Admin::ImpersonatableUsersController
- Defined in:
- app/controllers/decidim/admin/impersonatable_users_controller.rb
Overview
Controller that lists users in order to perform impersonation actions on them
Instance Method Summary collapse
Methods inherited from ApplicationController
#permission_class_chain, #permission_scope, #user_has_no_permission_path, #user_not_authorized_path
Instance Method Details
#index ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'app/controllers/decidim/admin/impersonatable_users_controller.rb', line 13 def index :index, :impersonatable_user @query = params[:q] @state = params[:state] @users = Decidim::Admin::UserFilter.for(collection, @query, @state) .page(params[:page]) .per(15) end |