diff options
author | Go MAEDA <maeda@farend.jp> | 2022-09-20 03:36:40 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-09-20 03:36:40 +0000 |
commit | 62f7551d57a4a0c77030a35b8822a91d524c8ea7 (patch) | |
tree | 2449917ab9c4d3ef50fcb937042bf7a35300583b /config | |
parent | cd70187c2fa2a5058690fde78dcdcb1c759c204e (diff) | |
download | redmine-62f7551d57a4a0c77030a35b8822a91d524c8ea7.tar.gz redmine-62f7551d57a4a0c77030a35b8822a91d524c8ea7.zip |
User bulk destroy (#37674).
includes a confirmation page that also gives the opportunity to lock
users instead of deleting them.
Patch by Jens Krämer.
git-svn-id: https://svn.redmine.org/redmine/trunk@21824 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config')
-rw-r--r-- | config/locales/en.yml | 2 | ||||
-rw-r--r-- | config/routes.rb | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml index 8f80d309e..335614dfb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1230,6 +1230,8 @@ en: text_project_close_confirmation: Are you sure you want to close the '%{value}' project to make it read-only? text_project_reopen_confirmation: Are you sure you want to reopen the '%{value}' project? text_project_archive_confirmation: Are you sure you want to archive the '%{value}' project? + text_users_bulk_destroy_head: 'You are about to delete the following users and remove all references to them. This cannot be undone. Often, locking users instead of deleting them is the better solution.' + text_users_bulk_destroy_confirm: 'To confirm, please enter "%{yes}" below.' text_workflow_edit: Select a role and a tracker to edit the workflow text_are_you_sure: Are you sure? text_journal_changed: "%{label} changed from %{old} to %{new}" diff --git a/config/routes.rb b/config/routes.rb index f2106d90f..fa65b4417 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -110,6 +110,9 @@ Rails.application.routes.draw do match '/users/context_menu', to: 'context_menus#users', as: :users_context_menu, via: [:get, :post] resources :users do + collection do + delete 'bulk_destroy' + end resources :memberships, :controller => 'principal_memberships' resources :email_addresses, :only => [:index, :create, :update, :destroy] end |