summaryrefslogtreecommitdiffstats
path: root/app/controllers/auth_sources_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-03-12 04:31:04 +0000
committerGo MAEDA <maeda@farend.jp>2018-03-12 04:31:04 +0000
commit8ee4d5084df530b32218f8854570c417ce67386e (patch)
treebb369b2a08ca1b0418065ea9dde9b885603829d3 /app/controllers/auth_sources_controller.rb
parent9c6d95b05991581c52f1d150dd6740a5ae3e8dc3 (diff)
downloadredmine-8ee4d5084df530b32218f8854570c417ce67386e.tar.gz
redmine-8ee4d5084df530b32218f8854570c417ce67386e.zip
Deletion of an LDAP authentication mode may fail silently (#28000).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17232 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/auth_sources_controller.rb')
-rw-r--r--app/controllers/auth_sources_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/auth_sources_controller.rb b/app/controllers/auth_sources_controller.rb
index dcbba3687..ed0b415e5 100644
--- a/app/controllers/auth_sources_controller.rb
+++ b/app/controllers/auth_sources_controller.rb
@@ -68,6 +68,8 @@ class AuthSourcesController < ApplicationController
unless @auth_source.users.exists?
@auth_source.destroy
flash[:notice] = l(:notice_successful_delete)
+ else
+ flash[:error] = l(:error_can_not_delete_auth_source)
end
redirect_to auth_sources_path
end