app/lib/authorizer.rb
# These fields are required on the `Student` model for
# authorization checks.
These fields are required on the `Student` model for
authorization checks.
These fields are required on the ` Student ` model for authorization checks .
def is_authorized_for_section?(section)
    return true if @educator.districtwide_access?
    return false if @educator.school.present? && @educator.school != section.course.school
    return true if @educator.schoolwide_access? || @educator.admin?
    return true if section.in?(@educator.sections)
    false
  end
def is_authorized_for_section? ( section ) return true if @educator . districtwide_access? return false if @educator . school . present? && @educator . school != section . course . school return true if @educator . schoolwide_access? || @educator . admin? return true if section . in? ( @educator . sections ) false end
These fields are required on the `Student` model for
authorization checks.
These fields are required on the ` Student ` model for authorization checks .
section
<not_specific>