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_to_write_transition_notes?
    return false unless @educator.can_view_restricted_notes
    return false unless @educator.labels.include?('k8_counselor')
    true
  end
def is_authorized_to_write_transition_notes? return false unless @educator . can_view_restricted_notes return false unless @educator . labels . include? ( 'k8_counselor' ) true end
These fields are required on the `Student` model for
authorization checks.
These fields are required on the ` Student ` model for authorization checks .