(options)
| 24 | }, |
| 25 | |
| 26 | getReleased (options) { |
| 27 | if (options == null) { options = {} } |
| 28 | if (options.data == null) { options.data = {} } |
| 29 | if (me.isInternal()) { |
| 30 | options.data.fetchInternal = true // will fetch 'released', 'beta', and 'internalRelease' courses |
| 31 | } else { |
| 32 | options.data.releasePhase = 'released' |
| 33 | if (me.isBetaTester() || me.isStudent() || me.isAdmin()) { |
| 34 | // Teacher beta testers, or any students (since students might be in teacher beta tester's classrooms) will get beta courses |
| 35 | options.data.fetchBeta = true // will fetch 'released' and 'beta' courses |
| 36 | } |
| 37 | } |
| 38 | options.data.cacheEdge = true |
| 39 | return fetchJson('/db/course', options) |
| 40 | }, |
| 41 | |
| 42 | fetchChangeLog (options) { |
| 43 | if (options == null) { options = {} } |
nothing calls this directly
no test coverage detected