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

Function isAdmin

app/core/store/modules/me.js:43–46  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

41 },
42
43 isAdmin (state) {
44 const permissions = state.permissions || []
45 return permissions.indexOf(User.PERMISSIONS.COCO_ADMIN) > -1
46 },
47
48 isLicensor (state) {
49 return ((state != null ? state.permissions : undefined) || []).indexOf(User.PERMISSIONS.LICENSOR) > -1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected