Commit 53674f01 authored by maeda's avatar maeda
Browse files

Deletion of an LDAP authentication mode may fail silently (#28000).

Patch by Go MAEDA.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 294b7cd7
......@@ -68,6 +68,8 @@ class AuthSourcesController < ApplicationController
unless @auth_source.users.exists?
flash[:notice] = l(:notice_successful_delete)
flash[:error] = l(:error_can_not_delete_auth_source)
redirect_to auth_sources_path
......@@ -221,6 +221,7 @@ en:
error_cannot_reassign_time_entries_to_an_issue_about_to_be_deleted: "Spent time cannot be reassigned to an issue that is about to be deleted"
warning_fields_cleared_on_bulk_edit: "Changes will result in the automatic deletion of values from one or more fields on the selected objects"
error_exceeds_maximum_hours_per_day: "Cannot log more than %{max_hours} hours on the same day (%{logged_hours} hours have already been logged)"
error_can_not_delete_auth_source: "This authentication mode is in use and cannot be deleted."
mail_subject_lost_password: "Your %{value} password"
mail_body_lost_password: 'To change your password, click on the following link:'
......@@ -159,6 +159,7 @@ class AuthSourcesControllerTest < Redmine::ControllerTest
:id => 1
assert_redirected_to '/auth_sources'
assert_equal 'This authentication mode is in use and cannot be deleted.', flash[:error]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment