MCPcopy Create free account
hub / github.com/codecombat/codecombat / isOnlineTeacher

Method isOnlineTeacher

app/models/User.js:136–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134 }
135
136 isOnlineTeacher () {
137 const needle = this.constructor.PERMISSIONS.ONLINE_TEACHER
138 return this.get('permissions', true).includes(needle)
139 }
140
141 isInGodMode () {
142 const needle = this.constructor.PERMISSIONS.GOD_MODE

Callers 5

hasAiJuniorAccessMethod · 0.95
useGoogleCalendarMethod · 0.95
afterInsertMethod · 0.80
updateStripeStatusMethod · 0.80
userIsOnlineTeacherMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected