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

Method isInGodMode

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

Source from the content-addressed store, hash-verified

139 }
140
141 isInGodMode () {
142 const needle = this.constructor.PERMISSIONS.GOD_MODE
143 const needle1 = this.constructor.PERMISSIONS.ONLINE_TEACHER
144 return this.get('permissions', true).includes(needle) || this.get('permissions', true).includes(needle1)
145 }
146
147 isSchoolAdmin () {
148 const needle = this.constructor.PERMISSIONS.SCHOOL_ADMINISTRATOR

Callers 8

levelMethod · 0.95
gemsMethod · 0.95
ownsHeroMethod · 0.95
isPremiumMethod · 0.95
canAutoFillCodeMethod · 0.95
annotateLevelsMethod · 0.80
updateXPBarsMethod · 0.80
updateXPBarsMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected