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

Method isParentAdmin

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

Source from the content-addressed store, hash-verified

160 }
161
162 isParentAdmin () {
163 const needle = this.constructor.PERMISSIONS.PARENT_ADMIN
164 return this.get('permissions', true).includes(needle)
165 }
166
167 isNapervilleAdmin () {
168 return this.get('permissions', true).includes(this.constructor.PERMISSIONS.NAPERVILLE_ADMIN)

Callers 1

constructorMethod · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected