diff options
Diffstat (limited to 'app/controllers/application.rb')
-rw-r--r-- | app/controllers/application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application.rb b/app/controllers/application.rb index 7d4a8950f..991b3fff7 100644 --- a/app/controllers/application.rb +++ b/app/controllers/application.rb @@ -124,12 +124,12 @@ class ApplicationController < ActionController::Base def render_403 @project = nil - render :template => "common/403", :layout => true, :status => 403 + render :template => "common/403", :layout => !request.xhr?, :status => 403 return false end def render_404 - render :template => "common/404", :layout => true, :status => 404 + render :template => "common/404", :layout => !request.xhr?, :status => 404 return false end |