app/controllers/import_records_controller.rb
# Authentication by default inherited from ApplicationController.
Authentication by default inherited from ApplicationController.
Authentication by default inherited from ApplicationController .
def authorize_for_districtwide_access_admin
    unless current_educator.admin? && current_educator.districtwide_access?
      render json: { error: "You don't have the correct authorization." }
    end
  end
def authorize_for_districtwide_access_admin unless current_educator . admin? && current_educator . districtwide_access? render json : { error : "You don't have the correct authorization." } end end
Authentication by default inherited from ApplicationController.
Authentication by default inherited from ApplicationController .