(user, includePossibleTeachers = false)
| 56 | }, |
| 57 | isSmokeTestUser (user) { return utils.isSmokeTestEmail(user.email) }, |
| 58 | isTeacher (user, includePossibleTeachers = false) { |
| 59 | if (includePossibleTeachers && (user.role === 'possible teacher')) { return true } // They maybe haven't created an account but we think they might be a teacher based on behavior |
| 60 | return ['teacher', 'technology coordinator', 'advisor', 'principal', 'superintendent', 'parent'].includes(user.role) |
| 61 | }, |
| 62 | } |
| 63 | |
| 64 | module.exports = (User = (function () { |
nothing calls this directly
no outgoing calls
no test coverage detected