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

Method fetchClans

app/views/courses/TeacherClassView.js:251–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

249 }
250
251 fetchClans () {
252 if (this.classroom.get('ownerID') === me.id) {
253 return clansApi.getMyClans().then(this.onMyClansLoaded)
254 } else if (this.classroom.hasReadPermission()) {
255 return clansApi.getUserClans(this.classroom.get('ownerID')).then(this.onMyClansLoaded)
256 }
257 }
258
259 attachMediatorEvents () {
260 // Model/Collection events

Callers 1

constructorMethod · 0.95

Calls 2

hasReadPermissionMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected