@@ -130,6 +130,7 class ApplicationController < ActionController::Base | |||||
130 | format.html { redirect_to :controller => "account", :action => "login", :back_url => url } |
|
130 | format.html { redirect_to :controller => "account", :action => "login", :back_url => url } | |
131 | format.atom { redirect_to :controller => "account", :action => "login", :back_url => url } |
|
131 | format.atom { redirect_to :controller => "account", :action => "login", :back_url => url } | |
132 | format.xml { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } |
|
132 | format.xml { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } | |
|
133 | format.js { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } | |||
133 | format.json { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } |
|
134 | format.json { head :unauthorized, 'WWW-Authenticate' => 'Basic realm="Redmine API"' } | |
134 | end |
|
135 | end | |
135 | return false |
|
136 | return false | |
@@ -240,6 +241,7 class ApplicationController < ActionController::Base | |||||
240 | format.html { render :template => "common/403", :layout => (request.xhr? ? false : 'base'), :status => 403 } |
|
241 | format.html { render :template => "common/403", :layout => (request.xhr? ? false : 'base'), :status => 403 } | |
241 | format.atom { head 403 } |
|
242 | format.atom { head 403 } | |
242 | format.xml { head 403 } |
|
243 | format.xml { head 403 } | |
|
244 | format.js { head 403 } | |||
243 | format.json { head 403 } |
|
245 | format.json { head 403 } | |
244 | end |
|
246 | end | |
245 | return false |
|
247 | return false | |
@@ -250,6 +252,7 class ApplicationController < ActionController::Base | |||||
250 | format.html { render :template => "common/404", :layout => !request.xhr?, :status => 404 } |
|
252 | format.html { render :template => "common/404", :layout => !request.xhr?, :status => 404 } | |
251 | format.atom { head 404 } |
|
253 | format.atom { head 404 } | |
252 | format.xml { head 404 } |
|
254 | format.xml { head 404 } | |
|
255 | format.js { head 404 } | |||
253 | format.json { head 404 } |
|
256 | format.json { head 404 } | |
254 | end |
|
257 | end | |
255 | return false |
|
258 | return false | |
@@ -263,6 +266,7 class ApplicationController < ActionController::Base | |||||
263 | } |
|
266 | } | |
264 | format.atom { head 500 } |
|
267 | format.atom { head 500 } | |
265 | format.xml { head 500 } |
|
268 | format.xml { head 500 } | |
|
269 | format.js { head 500 } | |||
266 | format.json { head 500 } |
|
270 | format.json { head 500 } | |
267 | end |
|
271 | end | |
268 | end |
|
272 | end |
General Comments 0
You need to be logged in to leave comments.
Login now