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

Function isStudent

app/core/store/modules/me.js:27–29  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

25 isAnonymous (state) { return state.anonymous === true },
26
27 isStudent (state) {
28 return (state || {}).role === 'student'
29 },
30
31 isTeacher (state, includePossibleTeachers) {
32 return User.isTeacher(state, includePossibleTeachers)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected