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

Method isArtisan

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

Source from the content-addressed store, hash-verified

129 }
130
131 isArtisan () {
132 const needle = this.constructor.PERMISSIONS.ARTISAN
133 return this.get('permissions', true).includes(needle)
134 }
135
136 isOnlineTeacher () {
137 const needle = this.constructor.PERMISSIONS.ONLINE_TEACHER

Callers 6

addImageUploadMethod · 0.80
getRenderDataMethod · 0.80
onLoadedMethod · 0.80
annotateLevelsMethod · 0.80
hasReadAccessMethod · 0.80
hasWriteAccessMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected