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

Method isSchoolAdmin

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

Source from the content-addressed store, hash-verified

145 }
146
147 isSchoolAdmin () {
148 const needle = this.constructor.PERMISSIONS.SCHOOL_ADMINISTRATOR
149 return this.get('permissions', true).includes(needle)
150 }
151
152 isAPIClient () {
153 const needle = this.constructor.PERMISSIONS.API_CLIENT

Callers 4

loginNavigateFunction · 0.80
onLoadedMethod · 0.80
constructorMethod · 0.80
userIsSchoolAdminMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected