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

Method canUseRobloxOauthConnection

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

Source from the content-addressed store, hash-verified

296 isStudent () { return this.get('role') === 'student' }
297
298 canUseRobloxOauthConnection () {
299 // No Roblox OAuth in classroom mode
300 return !this.isTeacher() && !this.isStudent()
301 }
302
303 isTestStudent () { return this.isStudent() && (this.get('related') || []).some(({ relation }) => relation === 'TestStudent') }
304

Callers

nothing calls this directly

Calls 2

isTeacherMethod · 0.95
isStudentMethod · 0.95

Tested by

no test coverage detected