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

Function getDisplayPermission

app/lib/classroom-utils.js:1–4  ·  view source on GitHub ↗
(permission)

Source from the content-addressed store, hash-verified

1export function getDisplayPermission (permission) {
2 const display = permission?.toLowerCase()
3 return $.i18n.t(`teacher_dashboard.${display}`)
4}
5
6export function hasPermission (permission, { ownerId, permissions }) {
7 if (me.id === ownerId) return true

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected