app/controllers/home_controller.rb
# Allow districtwide admin to dopplegang as another user
Allow districtwide admin to dopplegang as another user
Allow districtwide admin to dopplegang as another user
def current_educator_or_doppleganger(params_educator_id)
    if current_educator.can_set_districtwide_access? && params_educator_id.present?
      Educator.find(params_educator_id)
    else
      current_educator
    end
  end
def current_educator_or_doppleganger ( params_educator_id ) if current_educator . can_set_districtwide_access? && params_educator_id . present? Educator . find ( params_educator_id ) else current_educator end end
Allow districtwide admin to dopplegang as another user
Allow districtwide admin to dopplegang as another user
params_educator_id
<not_specific>