diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-18 00:49:37 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:19 -0500 |
commit | e80898409cf5d343e78ff1cef79f0af077185420 (patch) | |
tree | 935059f00874a01a206eab16fa1596d0b4ab455a | |
parent | ac126320800c0efc78bc393168076a603483a36f (diff) |
[Privacy] Only consider being locally logged in "authenticated" in authenticated_or_following
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 2b58e0b90..8154924b9 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -69,7 +69,7 @@ class ApplicationController < ActionController::Base end def require_functional! - redirect_to edit_user_registration_path unless current_user.functional? + redirect_to edit_user_registration_path unless current_user&.functional? end def require_authenticated! @@ -259,7 +259,7 @@ class ApplicationController < ActionController::Base end def authenticated_or_following?(account) - current_account? || following?(account) + current_user&.account.present? || following?(account) end def current_account? |