diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-03-22 13:05:17 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-03-22 13:05:17 +0100 |
commit | edd54411124b271622d7a2af4efdfe1a0a35cac4 (patch) | |
tree | 681e3e5a0c0206210e71a187a11c010646d82050 /app/controllers | |
parent | bde9196b70299405ebe9b16500b7a3f65539b2c3 (diff) | |
parent | 3411fbef19c71f3a60e9fbb175a0728a6cfc2ed8 (diff) |
Merge branch 'master' into glitch-soc/merge-upstream
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/concerns/account_controller_concern.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/concerns/account_controller_concern.rb b/app/controllers/concerns/account_controller_concern.rb index 8817fd7de..4f28941ae 100644 --- a/app/controllers/concerns/account_controller_concern.rb +++ b/app/controllers/concerns/account_controller_concern.rb @@ -69,6 +69,10 @@ module AccountControllerConcern end def check_account_suspension - gone if @account.suspended? + if @account.suspended? + skip_session! + expires_in(3.minutes, public: true) + gone + end end end |