git-svn-id: http://svn.redmine.org/redmine/trunk@16490 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/3.4.0
@@ -92,10 +92,11 @@ class RolesController < ApplicationController | |||
end | |||
def destroy | |||
@role.destroy | |||
redirect_to roles_path | |||
rescue | |||
flash[:error] = l(:error_can_not_remove_role) | |||
begin | |||
@role.destroy | |||
rescue | |||
flash[:error] = l(:error_can_not_remove_role) | |||
end | |||
redirect_to roles_path | |||
end | |||