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

Method isOwner

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

Source from the content-addressed store, hash-verified

475 }
476
477 isOwner () {
478 return (me.id === this.get('ownerID')) || me.isAdmin()
479 }
480
481 getDisplayPermission () {
482 if (this.isOwner()) {

Callers 8

getDisplayPermissionMethod · 0.95
revokeStudentLicensesMethod · 0.95
fetchForClassroomMethod · 0.80
constructorMethod · 0.80
assignCourseMethod · 0.80
redeemUsersMethod · 0.80
redeemUsersMethod · 0.80
revokeUsersMethod · 0.80

Calls 2

isAdminMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected