diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-03-25 03:06:19 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:21 -0500 |
commit | 6614d42c6e3aedd51b0e9b2a2bb5d6f0a19fcad0 (patch) | |
tree | 35c345b0d67cd385fd606060848ee15a0f00620f /app/controllers/concerns | |
parent | 90d2280dfec9c2fa3a257b89ea3dfb557168f2d3 (diff) |
hidden accounts + stats hiding
Diffstat (limited to 'app/controllers/concerns')
-rw-r--r-- | app/controllers/concerns/account_controller_concern.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/concerns/account_controller_concern.rb b/app/controllers/concerns/account_controller_concern.rb index 4f28941ae..9ac50a5ca 100644 --- a/app/controllers/concerns/account_controller_concern.rb +++ b/app/controllers/concerns/account_controller_concern.rb @@ -11,6 +11,7 @@ module AccountControllerConcern before_action :set_account before_action :check_account_approval before_action :check_account_suspension + before_action :check_account_hidden before_action :set_instance_presenter before_action :set_link_headers end @@ -75,4 +76,8 @@ module AccountControllerConcern gone end end + + def check_account_hidden + not_found if @account.hidden? + end end |