Redirect to referer when deleting a user (#10865).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9678 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
1 parent
46e48ad3f7
commit
7c97832002
1 file changed
+1
-1
@@ -174,7 +174,7 @@ class UsersController < ApplicationController
|
|||||||
def destroy
|
def destroy
|
||||||
@user.destroy
|
@user.destroy
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html { redirect_to(users_url) }
|
format.html { redirect_to_referer_or(users_url) }
|
||||||
format.api { head :ok }
|
format.api { head :ok }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user