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

Method getDisplayPermission

app/models/Classroom.js:481–490  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

479 }
480
481 getDisplayPermission () {
482 if (this.isOwner()) {
483 return
484 }
485 if (this.hasWritePermission()) {
486 return classroomUtils.getDisplayPermission('write')
487 } else if (this.hasReadPermission()) {
488 return classroomUtils.getDisplayPermission('read')
489 }
490 }
491
492 revokeStudentLicenses () {
493 const students = new Users()

Callers

nothing calls this directly

Calls 3

isOwnerMethod · 0.95
hasWritePermissionMethod · 0.95
hasReadPermissionMethod · 0.95

Tested by

no test coverage detected