diff options
author | ThibG <thib@sitedethib.com> | 2019-03-22 20:22:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-22 20:22:18 +0100 |
commit | 9f56511860493b770c2e535be0f8ce4777c8d373 (patch) | |
tree | 681e3e5a0c0206210e71a187a11c010646d82050 /app/controllers | |
parent | bde9196b70299405ebe9b16500b7a3f65539b2c3 (diff) | |
parent | edd54411124b271622d7a2af4efdfe1a0a35cac4 (diff) |
Merge pull request #965 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
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 |