projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fd52dd
)
Make sure "please read the terms" error is issued in the right language
author
Tom Hughes
<tom@compton.nu>
Sun, 17 Apr 2011 19:33:49 +0000
(20:33 +0100)
committer
Tom Hughes
<tom@compton.nu>
Sun, 17 Apr 2011 19:33:49 +0000
(20:33 +0100)
app/controllers/application_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/application_controller.rb
b/app/controllers/application_controller.rb
index 926be87ba3148183df3f463ca8e5f7986d71d563..657cb27e3abd381a687ed7ce0a51ea210d49c1f4 100644
(file)
--- a/
app/controllers/application_controller.rb
+++ b/
app/controllers/application_controller.rb
@@
-111,6
+111,7
@@
class ApplicationController < ActionController::Base
# allow editing - they have to go to the web site and see
# (but can decline) the CTs to continue.
if REQUIRE_TERMS_SEEN and not @user.terms_seen
+ set_locale
render :text => t('application.setup_user_auth.need_to_see_terms'), :status => :forbidden
end
end