MCPcopy Index your code
hub / github.com/codecombat/codecombat / isTeacher

Method isTeacher

app/models/User.js:307–307  ·  view source on GitHub ↗
(includePossibleTeachers = false)

Source from the content-addressed store, hash-verified

305 isCreatedByClient () { return (this.get('clientCreator') != null) }
306
307 isTeacher (includePossibleTeachers = false) { return User.isTeacher(this.attributes, includePossibleTeachers) }
308
309 isPaidTeacher () {
310 // TODO: this doesn't actually check to see if they are paid (having prepaids), confusing

Callers 15

isPaidTeacherMethod · 0.95
isSessionlessMethod · 0.95
hasSubscriptionMethod · 0.95
enableCppMethod · 0.95
enableJavaMethod · 0.95
canAutoFillCodeMethod · 0.95
utils.jsFile · 0.80
''Method · 0.80
routeDirectlyMethod · 0.80
redirectHomeMethod · 0.80
identifyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected