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

Method useGoogleCalendar

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

Source from the content-addressed store, hash-verified

1384 hideOtherProductCTAs () { return this.isTarena() || this.isILK() || this.isICode() || this.isCodeNinja() }
1385 useGoogleClassroom () { return !(features?.chinaUx != null ? features?.chinaUx : false) && (this.get('gplusID') != null) } // if signed in using google SSO
1386 useGoogleCalendar () { return !(features?.chinaUx != null ? features?.chinaUx : false) && (this.get('gplusID') != null) && (this.isAdmin() || this.isOnlineTeacher()) } // if signed in using google SSO
1387 useGoogleAnalytics () { return !((features?.china != null ? features?.china : false) || (features?.chinaInfra != null ? features?.chinaInfra : false)) }
1388 isEdLinkAccount () { return !(features?.chinaUx != null ? features?.chinaUx : false) && (this.get('edLink') != null) }
1389 useDataDog () { return !((features?.china != null ? features?.china : false) || (features?.chinaInfra != null ? features?.chinaInfra : false)) }

Callers 1

constructorMethod · 0.80

Calls 3

getMethod · 0.95
isAdminMethod · 0.95
isOnlineTeacherMethod · 0.95

Tested by

no test coverage detected