mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@16490 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
21887c742a
commit
353914768e
@ -92,10 +92,11 @@ class RolesController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
|
begin
|
||||||
@role.destroy
|
@role.destroy
|
||||||
redirect_to roles_path
|
|
||||||
rescue
|
rescue
|
||||||
flash[:error] = l(:error_can_not_remove_role)
|
flash[:error] = l(:error_can_not_remove_role)
|
||||||
|
end
|
||||||
redirect_to roles_path
|
redirect_to roles_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user