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

Function getDisplayPermission

ozaria/site/common/utils.js:37–41  ·  view source on GitHub ↗
(permission)

Source from the content-addressed store, hash-verified

35}
36
37export function getDisplayPermission (permission) {
38 const display = permission?.toLowerCase()
39 if (display !== 'read' && display !== 'write') return ''
40 return $.i18n.t(`teacher_dashboard.${display}`)
41}
42
43function teacherModalSeenKey (teacherId) {
44 return `seen-teacher-details-modal_${teacherId}`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected