Suspended users thrown to login screen quicker.
authorThomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net>
Thu, 22 Mar 2012 20:23:18 +0000 (21:23 +0100)
committerThomas Kjeldahl Nilsson <thomas@kjeldahlnilsson.net>
Thu, 22 Mar 2012 20:23:18 +0000 (21:23 +0100)
commit8443d4fbf81db7579dc93d5c3c5a4098334324a7
treec1274aba2d09cc1db8074fd1bff9227083de2638
parent24d82fb206a381e433eb5e6b12ea2c6d36bb6c0f
Suspended users thrown to login screen quicker.

Before, a suspended user could keep playing in valid session
until choosing to log out voluntarily. Now, the suspended user
is thrown out as soon as he hits a :login_required filter in the
controllers (ie. when trying to perform any destructive action).
lib/authenticated_system.rb
test/functional/admin/users_controller_test.rb