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_school?(school)
    return true if @educator.districtwide_access?
    return true if @educator.schoolwide_access? && @educator.school == school
    return true if @educator.has_access_to_grade_levels? && @educator.school == school
    false
  end
def is_authorized_for_school? ( school ) return true if @educator . districtwide_access? return true if @educator . schoolwide_access? && @educator . school == school return true if @educator . has_access_to_grade_levels? && @educator . school == school false end
These fields are required on the `Student` model for
authorization checks.
These fields are required on the ` Student ` model for authorization checks .
school
<not_specific>