(permission)
| 1 | export function getDisplayPermission (permission) { |
| 2 | const display = permission?.toLowerCase() |
| 3 | return $.i18n.t(`teacher_dashboard.${display}`) |
| 4 | } |
| 5 | |
| 6 | export function hasPermission (permission, { ownerId, permissions }) { |
| 7 | if (me.id === ownerId) return true |
nothing calls this directly
no outgoing calls
no test coverage detected