瀏覽代碼

Code cleanup.

git-svn-id: http://svn.redmine.org/redmine/trunk@16490 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/3.4.0
Jean-Philippe Lang 7 年之前
父節點
當前提交
353914768e
共有 1 個檔案被更改,包括 5 行新增4 行删除
  1. 5
    4
      app/controllers/roles_controller.rb

+ 5
- 4
app/controllers/roles_controller.rb 查看文件

@@ -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


Loading…
取消
儲存