summaryrefslogtreecommitdiff
path: root/app/controllers/admin/impersonations_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/admin/impersonations_controller.rb')
-rw-r--r--app/controllers/admin/impersonations_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/admin/impersonations_controller.rb b/app/controllers/admin/impersonations_controller.rb
index 65fe22bd8f4..f0e160258f8 100644
--- a/app/controllers/admin/impersonations_controller.rb
+++ b/app/controllers/admin/impersonations_controller.rb
@@ -12,6 +12,6 @@ class Admin::ImpersonationsController < Admin::ApplicationController
private
def authenticate_impersonator!
- render_404 unless impersonator && impersonator.admin? && !impersonator.blocked?
+ render_404 unless impersonator&.admin? && !impersonator.blocked?
end
end