]> git.openstreetmap.org Git - rails.git/commit
Fix display of suspension message when a user is suspended mid-session
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jan 2022 18:14:30 +0000 (18:14 +0000)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 5 Jan 2022 18:21:42 +0000 (18:21 +0000)
commit4bed9c12a0b5e8302098f1646802ce247abf95ee
tree704f797e6a3f5a72fb331ad9b63af5a7221b7883
parent8dc91ce6a64db96d8295fd3d9dff2779c02e4a71
Fix display of suspension message when a user is suspended mid-session

Without the ability defined, the user is still logged out, but then
the deny_access check redirects to the login page. The re-login attempt
would then fail anyway, with an error message, but let's fix the abilities
and use the intended page.
app/abilities/ability.rb
test/system/user_suspension_test.rb [new file with mode: 0644]