mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 08:46:01 +01:00
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@16490 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -92,10 +92,11 @@ class RolesController < ApplicationController
|
||||
end
|
||||
|
||||
def destroy
|
||||
begin
|
||||
@role.destroy
|
||||
redirect_to roles_path
|
||||
rescue
|
||||
flash[:error] = l(:error_can_not_remove_role)
|
||||
end
|
||||
redirect_to roles_path
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user