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

Method showOzCourses

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

Source from the content-addressed store, hash-verified

192
193 // This could also be a user property later, once we plan to release Ozaria to more users
194 showOzCourses () {
195 if (utils.isOzaria) {
196 return true
197 }
198 return this.isInternal() || this.isAdmin() || this.get('features')?.canAccessOzCourse
199 }
200
201 isDistrictAdmin (districtId) {
202 if (!districtId) return false

Callers 4

utils.jsFile · 0.80
sortedFunction · 0.80
fetchDataSingleClassFunction · 0.80
getResourceHubResourcesFunction · 0.80

Calls 3

isInternalMethod · 0.95
isAdminMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected