[PATCH conductor] BZ 798259 - require_user handles XHR requests properly

Matt Wagner matt.wagner at redhat.com
Tue Feb 28 23:08:13 UTC 2012


Previously we displayed an error in this case.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=798259
---
 src/app/controllers/application_controller.rb |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/app/controllers/application_controller.rb b/src/app/controllers/application_controller.rb
index be2ded3..4c3347f 100644
--- a/src/app/controllers/application_controller.rb
+++ b/src/app/controllers/application_controller.rb
@@ -188,6 +188,7 @@ class ApplicationController < ActionController::Base
         flash[:notice] = t('application_controller.flash.notice.must_be_logged')
         redirect_to login_url
       end
+      format.js { head :unauthorized }
       format.xml { head :unauthorized }
       format.json { head :unauthorized }
     end
-- 
1.7.6.5




More information about the aeolus-devel mailing list