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

Method isDistrictAdmin

app/models/User.js:201–204  ·  view source on GitHub ↗
(districtId)

Source from the content-addressed store, hash-verified

199 }
200
201 isDistrictAdmin (districtId) {
202 if (!districtId) return false
203 return this.get('features')?.ownerDistrictId === districtId
204 }
205
206 displayName () { return this.get('name', true) }
207 broadName () { return User.broadName(this.attributes) }

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected