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

Method isAdmin

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

Source from the content-addressed store, hash-verified

119 }
120
121 isAdmin () {
122 const needle = this.constructor.PERMISSIONS.COCO_ADMIN
123 return this.get('permissions', true).includes(needle)
124 }
125
126 isLicensor () {
127 const needle = this.constructor.PERMISSIONS.LICENSOR

Callers 15

showOzCoursesMethod · 0.95
hasAiJuniorAccessMethod · 0.95
isPremiumMethod · 0.95
getExperimentValueMethod · 0.95
useGoogleCalendarMethod · 0.95
canAutoFillCodeMethod · 0.95
hasCampaignAccessMethod · 0.95
fetchReleasedMethod · 0.80
getVueRouterFunction · 0.80

Calls 1

getMethod · 0.95

Tested by

no test coverage detected