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

Method googleClassroomEnabled

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

Source from the content-addressed store, hash-verified

1489 // google classroom flags for new teacher dashboard, remove `useGoogleClassroom` when old dashboard disabled
1490 showGoogleClassroom () { return !(features?.chinaUx != null ? features?.chinaUx : false) && !me.isCodeNinja() }
1491 googleClassroomEnabled () { return (me.get('gplusID') != null) && !me.isCodeNinja() }
1492
1493 // Block access to paid campaigns(any campaign other than CH1) for anonymous users + non-admin, non-internal individual users.
1494 // Scenarios where a user has access to a campaign:

Callers

nothing calls this directly

Calls 2

isCodeNinjaMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected